Measures the usable data-thoughput from the ESP to the computer.
Copyright Julius Kramer 2020
TCP Socket Speed Test for ESP32 / ESP8266 The counterpart software has to be installed on the ESP target. Using this script, the usable data-thoughput from the ESP to the computer can be measured. Depending on network speeds (and ESP clock speed) this test may take a couple of minutes.
-> Maximum achievable speed in my tests: 5.25 Mbit/s @ 5 streams
-> Maximum achievable speed in my tests: 2.9 Mbit/s @ 25 streams
Download "Platform IO" and load either the esp32 or ep8266 program (depending on your device) onto the device. Make sure it is connected to the network by using a serial monitor: the program will tell you its IP address as soon as it connected successfully.
You can specify how many concurrent connections you want to test by changing the parameter in the configuration section:
"""
CONFIGURATION
"""
# ESP IP in local network
host = "192.168.100.39"
# Regarding ESP32, 5 concurrent streams is the MAXIMUM!
# Regarding ESP8266, no limit of streams is known (testet and could handle easily 100+ streams)
concurrent_connections = 5