Home

Awesome

speedtest-linux

From the command line get ping/download/upload stats:

______________|  speedtest : ping, download and upload speeds.
                             Commandline using speedtest.net resources.
                             This standalone script is a wrapper. 
                                        
         Usage:  speedtest [--log|--simple|--verbose|--list|--fav|--version]

                 Takes about a minute for results to appear.
                 For logfile, the variable $logf can be modified.

      Examples:  $ speedtest --simple 
                 Ping: 22.602 ms
                 Download: 0.62 Mbit/s
                 Upload: 0.25 Mbit/s
                 
                 $ speedtest   #  No args for single line timestamped.
                 2015-03-13, 19:25, 22.602, 0.62, 0.25

                 $ speedtest --log  #  Will cat logfile with latest result.

  Dependencies:  curl (Used to download the following Python script:)
                 speedtest.py (https://github.com/sivel/speedtest-cli)

fasttest

Get just the download speed via fast.com from the command line, suitable for logs. The infrastructure is provided by Netflix to make sure ISPs are not throttling their streaming movies.

______________|  fasttest : download speed in Mbps, flag to log results. 
                            Uses Netflix's fast.com resources,
                            checking via both IPv4 and IPv6.
                            This standalone script is a wrapper. 

         Usage:  fasttest [--log|--verbose]

                 Takes about a minute for results to appear.
                 For logfile, directory variable $logdir should be modified.

      Examples:  $ fasttest   #  No args for single line timestamped.
                 2017-03-06, 19:25, None, 0.62, None

                 $ fasttest --log  #  Will cat logfile with latest result.

                 $ fasttest --log tmp.log  #  else default: fasttest.log

  Dependencies:  curl (Used to download the following Python script:)
                 fast_com.py (https://github.com/sanderjo/fast.com)

Comparison

For execution time, speedtest runs about 60% faster than fasttest. In terms of information, speedtest provides more than fasttest, and is more accurate in measuring download speed. The code base for speedtest is more mature and receives more support and scrutiny, compared to that of fasttest.

Magic one-liner

Given our preferred choice: speedtest -- here is a way to directly access its service without cloning our repository:

$ echo "$(curl -skLO https://git.io/speedtest.sh && chmod +x speedtest.sh && ./speedtest.sh)"
2015-03-13, 19:25, 22.602, 0.62, 0.25

The curl command retrieves the most current version of speedtest, renamed for this exercise as speedtest.sh, then we execute it to display: date, local time, ping in milliseconds, followed by download and upload speeds in Mbps (Megabits per second).

To fine-tune the logging functions, please fork our repository.

Acknowledgements

Many thanks to the developers upstream: @sivel and @sanderjo -- we rely on their latest updates to the Python source code.

Shortcut to this project: https://git.io/speed


README.md update : 2017-03-09