Live data from Hacker News

Run an Internet Speed Test from the Command Line

putorius.net

21–30 of 49 posts

Re: Run an Internet Speed Test from the Command Line

#21
post #20

Hmm, it reports about a 10 times lower upload speed allthough my subscription is 50/50 symetrical. I can confirm that I usually do get to the correct speeds (~50 Mbit/s) when downloading things of my server... Where could this mismatch come form?

Quite obviously the server you are testing against.

Re: Run an Internet Speed Test from the Command Line

#25
Surprised no-one has mentioned `iperf` on linux [1,2] for what that is worth.

It lets you roll your own speed testing infrastructure basically: Run it as a server on one end you want to test, then run it as client against that server IP/hostname on the other end.

It is very handy for measuring throughput between two boxes in a network (or anywhere for that matter).

Several big ISPs have endpoints for testing it as well for a speedtest like experience [1].

[1] - https://iperf.fr/iperf-doc.php

[2] - https://manpages.ubuntu.com/manpages/bionic/man1/iperf.1.htm...

Re: Run an Internet Speed Test from the Command Line

#26
speedtest-cli is garbage if you have >100Mbps Speeds. The dev refuses to acknowledge this: https://github.com/sivel/speedtest-cli/issues/226

Also not just me: https://github.com/sivel/speedtest-cli/issues/649

https://github.com/sivel/speedtest-cli/issues/648

https://github.com/sivel/speedtest-cli/issues/641

https://github.com/sivel/speedtest-cli/issues/616

https://github.com/sivel/speedtest-cli/issues/601

https://github.com/sivel/speedtest-cli/issues/588

https://github.com/sivel/speedtest-cli/issues/546

Re: Run an Internet Speed Test from the Command Line

#27

Note that some ISPs prioritise traffic to known speedtest targets, turning off traffic shaping rules that might otherwise slow bulk transfers. When this happens it means you are testing the likely maximum throughput of your connection not necessarily the throughput you will see more generally. This is why Netflix started fast.com - because it draws data from the same distribution points as their video streaming apps…

That said, I can and do get 200mbps+ on fast.com (my preferred/goto speedtest), and still experience constant buffering and the "sorry we can't play that video right now" message that kicks me out but then just clicking play again works.

I'm not saying it's their servers or network, but I haven't found a reason for it based on my fast.com results.

Re: Run an Internet Speed Test from the Command Line

#28

Note that some ISPs prioritise traffic to known speedtest targets, turning off traffic shaping rules that might otherwise slow bulk transfers. When this happens it means you are testing the likely maximum throughput of your connection not necessarily the throughput you will see more generally. This is why Netflix started fast.com - because it draws data from the same distribution points as their video streaming apps…

That said, I can and do get 200mbps+ on fast.com (my preferred/goto speedtest), and still experience constant buffering and the "sorry we can't play that video right now" message that kicks me out but then just clicking play again works. I'm not saying it's their servers or network, but I haven't found a reason for it based on my fast.com results.

> but then just clicking pay again works

freudian slip much?

Re: Run an Internet Speed Test from the Command Line

#29
post #6
post #5

there is a standard package available in the debian repository apt install speedtest-cli Description: Command line interface for testing internet bandwidth using speedtest.net Speedtest.net is a webservice that allows you to test your broadband connection by downloading a file from one of many Speedtest.net servers from around the world. . This utility allows you to use the Speedtest.net service from the command line…

Might concern some users: I had an issue on my 250/250Mbps-line using speedtest-cli in that it showed the correct download speed, but only 4Mbps upload. Googling suggests it could be an issue with slow CPU/low RAM. My (now old) server was by no means a beast as it had a throttled i3-3220T with 8GB RAM, but it should be plenty fast for that task. The solution I came across on reddit/stack was to use this [0] instead,…

With the Ubuntu packaged version 2.0.0:

  Testing download speed...
  Download: 917.52 Mbit/s
  Testing upload speed...
  Upload: 4.16 Mbit/s
Yeah, there's something wrong with that. There doesn't seem to be high CPU use.

Version 0.3.4, which is the default from Apt on a test server, seems to be OK:

  Download: 2239.51 Mbit/s
  Upload: 882.54 Mbit/s
(Maximum would be 20Gbit/s both ways, but I suspect achieving that to a single server would require some network parameter tweaking.)

Re: Run an Internet Speed Test from the Command Line

#30

Earlier quoted context omitted.

That said, I can and do get 200mbps+ on fast.com (my preferred/goto speedtest), and still experience constant buffering and the "sorry we can't play that video right now" message that kicks me out but then just clicking play again works. I'm not saying it's their servers or network, but I haven't found a reason for it based on my fast.com results.

> but then just clicking pay again works freudian slip much?

Good catch!
Post reply on HN