How to Speedtest Your Server

I needed to speedtest my GNU/Linux server for my last post UltraVPS: Cheap VPS Hosting Starting at 2€ per Month and I looked at different approaches and the best one seems to be using the speedtest python script from sivel on Github.

On your server, execute the following command to download the speedtest script:

$ wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

then set the script to executable:

$ chmod +x speedtest.py

and finally execute the speedtest script:

$ ./speedtest.py

After executing the script, the output looks like this:

$ ./speedtest.py
Retrieving speedtest.net configuration...
Testing from Providerdienste (130.255.78.218)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by IT Ohlendorf (Salzgitter) [111.93 km]: 1.417 ms
Testing download speed................................................................................
Download: 496.99 Mbit/s
Testing upload speed......................................................................................................
Upload: 635.29 Mbit/s

I recommend you execute the script multiple times and choose the best result, as a single execution only tests your servers speed with a single speedtest server and not every speedtest server has good upload and download rates to give a good result.

Leave a Reply

Your email address will not be published. Required fields are marked *