/speedtest

Test your server's internet speed

Primary LanguagePythonApache License 2.0Apache-2.0

Info

This script tests your internet bandwidth using speedtest.net

Getting Ready

Ubuntu / Debian

apt-get -y install python

CentOS

yum -y install python

Download

wget https://raw.githubusercontent.com/AmirOVH/speedtest/master/st.py

or

curl https://raw.githubusercontent.com/AmirOVH/speedtest/master/st.py

Usage

$ ./speedtest.py -help
usage: st.py [-h] [--bytes] [--share] [--simple] [--list] [--server SERVER]
         [--mini MINI] [--source SOURCE] [--timeout TIMEOUT] [--secure]
         [--version]

--------------------------------------------------------------------------

Optional Arguments:
  --help                Shows this help message and exit.
  --bytes               Display values in bytes instead of bits. Does not
                        affect the image generated by --share.
  --share               Generate and provide a URL to the speedtest.net share
                        results image.
  --simple              Suppress verbose output, only show basic information.
  --list                Display a list of speedtest.net servers sorted by
                        distance.
  --server SERVER       Specify a server ID to test against. Can be supplied
                        multiple times.
  --mini MINI           URL of the Speedtest Mini server.
  --source SOURCE       Source IP address to bind to.
  --timeout TIMEOUT     HTTP timeout in seconds. Default 10.
  --secure              Use HTTPS instead of HTTP when communicating with
                        speedtest.net operated servers.
  --version             Show the version number and exit.