speedtest.net tests via cli

Print Friendly, PDF & Email

Speedtest.net is the de facto internet link speed testing tool out there. Some people might argue that it is not accurate, but it’s still the most popular tool of it’s kind out there.

For us geeky individuals that have only the command line (cli) available to us in Linux but still want to test our link speed to the internet, there is a solution. speedtest-cli

To use, do the following (Tested in Ubuntu)
Step 1: Install GIT (git-core)

user@techedemic:~$ sudo apt-get install git-core


Step 2: Navigate to a suitable location on your machine and clone the speedtest-cli git repo. I used my /home/user/Downloads/ directory in the below example

user@techedemic:~$ cd ~/Downloads
user@techedemic:~$ git clone https://github.com/sivel/speedtest-cli.git
Cloning into 'speedtest-cli'...
remote: Counting objects: 196, done.
remote: Compressing objects: 100% (124/124), done.
remote: Total 196 (delta 103), reused 158 (delta 72)
Receiving objects: 100% (196/196), 38.34 KiB, done.
Resolving deltas: 100% (103/103), done.

Step 3: Run it

user@techedemic:~$ cd speedtest-cli
user@techedemic:~$ :~/Download/speedtest-cli$ ./speedtest_cli.py
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from MTN Business (xxx.xxx.xxx.xxx)...
Selecting best server based on ping...
Hosted by Telkom SA (SAIX) (Cape Town) [5.66 km]: 7.391 ms
Testing download speed........................................
Download: 0.28 Mbit/s
Testing upload speed..................................................
Upload: 0.39 Mbit/s

Clearly there is something wrong with my internet line. Should be about 2Mbit/s down and 0.5Mbit/s up.

1 comment

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.