Internet speedtest from the CLI

Share your own howto's etc. Not for support questions!

Internet speedtest from the CLI

Postby Hallvor » 2017-09-16 20:31

Why use it?

This application is nice if you want to monitor your broadband connection from the CLI. This makes it ideal for headless servers.

Many of you might have tried the web page: http://beta.speedtest.net/ It should give you the same result.


Installation
Simply install it by typing:
Code: Select all
# apt-get install speedtest-cli


Using it
We can now launch the application from the CLI by typing, as regular user:

Code: Select all
$ speedtest-cli


Speedtest will select the server with the lowest ping and give you the results, like this:

Code: Select all
hallvor@debian-hp:~$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from HomeNet (XX.XX.XX.XX)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Telenor A/S (Aalborg) [168.97 km]: 50.952 ms
Testing download speed................................................................................
Download: 20.07 Mbit/s                                                                                                                                                                         
Testing upload speed....................................................................................................                                                                       
Upload: 17.97 Mbit/s                                                                                                                                                                           
hallvor@debian-hp:~$


Not very impressive... :roll:
Intel Core i5 3320-M CPU @ 2.60 GHz, 6 GB RAM, Intel HD 4000 graphics, 300 GB HDD, Debian Stretch (KDE)
User avatar
Hallvor
 
Posts: 739
Joined: 2009-04-16 18:35
Location: Norway

Re: Internet speedtest from the CLI

Postby Bulkley » 2017-09-16 21:34

Nice idea. Thanks.

Does speedtest-cli need Flash? The one on the web site does. I've been using Speed of Me which uses HTML5.
Bulkley
 
Posts: 5331
Joined: 2006-02-11 18:35

Re: Internet speedtest from the CLI

Postby Ardouos » 2017-09-16 21:54

Bulkley wrote:Nice idea. Thanks.

Does speedtest-cli need Flash?


Nope :)
User avatar
Ardouos
 
Posts: 935
Joined: 2013-11-03 00:30
Location: Elicoor II

Re: Internet speedtest from the CLI

Postby Bulkley » 2017-09-17 02:07

Speedtest CLI is fast!

Code: Select all
Selecting best server based on ping...
Hosted by Monashee Mountain Multimedia (Revelstoke, BC) [196.14 km]: 61.974 ms
Testing download speed................................................................................
Download: 5.79 Mbit/s
Testing upload speed....................................................................................................
Upload: 1.00 Mbit/s


Yes, I know it's slow but Internet is expensive here and I can live with this.
Bulkley
 
Posts: 5331
Joined: 2006-02-11 18:35

Re: Internet speedtest from the CLI

Postby RU55EL » 2017-09-17 05:00

Nice! Thanks for the thread!

Code: Select all
russel@debian-nuc:~$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from SimpleLink (xxx.xxx.xx.xx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Line Systems (West Chester, PA) [137.61 km]: 83.369 ms
Testing download speed................................................................................
Download: 10.70 Mbit/s
Testing upload speed....................................................................................................
Upload: 21.33 Mbit/s


interesting that my upload speed is about double the download speed.
User avatar
RU55EL
 
Posts: 316
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Internet speedtest from the CLI

Postby alan stone » 2017-09-17 07:12

RU55EL wrote:interesting that my upload speed is about double the download speed.

:oops: Is your ISP located south of where you are? :oops:
Debian 8.9 32bit, WM: Openbox
Computers are like air conditioners. They work fine until you start opening windows. - Author Unknown
Programming is like sex. One mistake and you have to support it for the rest of your life. - Michael Sinz
User avatar
alan stone
 
Posts: 211
Joined: 2011-10-22 14:08
Location: In my body.

Re: Internet speedtest from the CLI

Postby kedaha » 2017-09-17 08:05

Very nice! Thanks very much for the post. I've just tried it on my headless server:
Code: Select all
user@server:~$ speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from ****** (**.***.***.***)...
Selecting best server based on latency...
Hosted by wilhelm.tel (Norderstedt) [18.59 km]: 22.128 ms
Testing download speed........................................
Download: 93.44 Mbits/s
Testing upload speed..................................................
Upload: 79.99 Mbits/s

Not bad at all!
Mate DE & OSSv4.
LaMp, WordPress; ispmail
Debian Stable & Software

Words, as is well known, are the great foes of reality. Joseph Conrad.
User avatar
kedaha
 
Posts: 2797
Joined: 2008-05-24 12:26

Re: Internet speedtest from the CLI

Postby RU55EL » 2017-09-17 14:39

alan stone wrote:
RU55EL wrote:interesting that my upload speed is about double the download speed.

:oops: Is your ISP located south of where you are? :oops:


Not anymore:
Code: Select all
russel@debian-nuc:~$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from SimpleLink (xxx.xxx.xx.xx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Comcast (Baltimore, MD) [139.59 km]: 103.526 ms
Testing download speed................................................................................
Download: 9.94 Mbit/s
Testing upload speed....................................................................................................
Upload: 22.92 Mbit/s


[edit]
It seems to be balanced at work:
Code: Select all
russel@NUC-G:~$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from SimpleLink (xxx.xxx.xx.xx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Hotwire Fision (Philadelphia, PA) [130.72 km]: 78.648 ms
Testing download speed................................................................................
Download: 18.00 Mbit/s
Testing upload speed....................................................................................................
Upload: 18.67 Mbit/s

[/edit]
User avatar
RU55EL
 
Posts: 316
Joined: 2014-04-07 03:42
Location: /home/russel


Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable