top | item 21581850

(no title)

davewood | 6 years ago

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. . Note: This tool accesses speedtest.net over http, while the web-based client uses websockets. This tool has shown to become increasingly inacurate with high-speed connections. For more information, see the readme on: https://github.com/sivel/speedtest-cli

discuss

order

croon|6 years ago

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, which solved the discrepancy for me:

[0] https://github.com/taganaka/SpeedTest

mfontani|6 years ago

Indeed, my own raspberry pi was returning weird results with the python-based one; I switched to this one and it is more consistent. I had to add an "--output json" option to it to not have to redo all my tooling around tracking the speedtest results, but forgot to make a pull request to the repo, and I've just done that: same json format as the python-based version.

Symbiote|6 years ago

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.)