The speedtest.net is probably one of the more popular bandwidth testing utilities, Unfortunately, this and many other similar tools require a Web browser with late-version Flash or Java support, which can be problematic on Unix servers.

Fortunately, speedtest.net also provides a Python-based Linux CLI utility that’s easy to use and delivers consistent results. To install and use the “speedtest-cli” follow the simple steps below:

1

Sample run:

You should keep in mind that – for very fast broadband links – the bottleneck may not be your network connection but the Speedtest.net server. By default, the speedtest-cli will select the nearest test server based on your external IP address.

However, sometimes Speedtest.net does not select the nearest test server. You can also specify an alternate test server. The list of Speedtest.net servers is available here in XML format. You can also get a quick list with the “–list” option like so:

You can sort by the physical distance between your external IP geolocation coordinates and the test server. Just keep in mind that the closest test server in terms of kilometers does not always offers lowest network latency.

You can specify an alternate test server like so:

You can even specify several test servers and run the test in a loop to check consistency of the results:

A better way to test your broadband link speed would be to connect your computer directly into the broadband router, bypassing any firewalls and switches. You may also consider using the ISP-specific network speed test tool, such as this one from Verizon.

  1. Note: to get the most accurate results, make sure your server is not too busy and your WAN activity is minimal.

Leave A Reply

Please enter your comment!
Please enter your name here