If you use a speedtest like speedtest.net is used http websocket for spedesting but if you need more fast speed so you need to use TCP or UDP
https://www.youtube.com/watch?v=_fSsKg01Bto
Install tcp server :
git clone https://github.com/pawitpr/tcp-speedtest-python
cd tcp-speedtest-python
python server.py
client:
git clone https://github.com/pawitpr/tcp-speedtest-python
cd tcp-speedtest-python
<open the client.py and change server ip to your server ip >
python client.py
- Faster
- Support 75+ client for the speedtest