cf-speedtest
cf-speedtest copied to clipboard
A command-line internet speed test tool
cf_speedtest
A simple internet speed test tool/library, which uses https://speed.cloudflare.com (provided by Cloudflare)
Installation:
$ pip install -U cf-speedtest
Basic CLI usage:
-
Running a normal speedtest:
cf_speedtest
-
Without verifying SSL:
cf_speedtest --verifyssl=false
-
Specify a percentile of measurements to be considered your speed (default 90):
cf_speedtest --percentile 80
-
Output measurements to a CSV file:
cf_speedtest --output speed_data.csv
-
Specify a SOCKS/HTTP proxy to use (with or without authentication):
cf_speedtest --proxy socks5://127.0.0.1:1080cf_speedtest --proxy socks5://admin:[email protected]:1080cf_speedtest --proxy http://127.0.0.1:8181cf_speedtest --proxy http://admin:[email protected]:8181cf_speedtest --proxy 127.0.0.1:8181
Programmatic usage:
- TODO
TODO:
- Programmatic usage
- Multi-threaded speedtest
- Continuous mode
Disclaimers:
- This library is purely single-threaded
- This library works entirely over HTTP(S), which has some overhead
- Latency is measured with HTTP requests
- Cloudflare has a global network, but you may be connected to a distant PoP due to ISP peering and other factors