Speedtest using curl

Categories: linux firewall

Sometimes you just need to do a speedtest and doing so either requires a browser or installing speedtest-cli, but I don’t like doing that on a firewall, so I recently found a way to test my internet speed with curl and python.

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -

# With Python3
curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -

 

Output

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
Retrieving speedtest.net configuration...
Testing from Hiper A/S...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by TDC Group (Copenhagen) [1.41 km]: 4.779 ms
Testing download speed......................................................................
Download: 918.19 Mbit/s
Testing upload speed........................................................................
Upload: 859.04 Mbit/s