Speedtest.net provides the command line tool speedtest-cli. in Linux, we can use speedtest-cli to test the broadband speed. speedtest-cli is a lightweight Linux command line tool compiled by Python based on Speedtest.net. architecture to measure the network's upstream/downstream speed running environment: python2.4-3.4 github: https://github.com/siv Speedtest.net provides a command line tool speedtest-cli we can use speedtest-cli in Linux to test broadband speed
Speedtest-cli is a lightweight Linux command line tool compiled by Python. it is based on the infrastructure of Speedtest.net to measure the uplink/downlink speed of the network.
Running environment: Python2.4-3.4
Github: https://github.com/sivel/speedtest-cli
Download speedtest-cli.py and change permissions # wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py# Chmod a + rx speedtest_cli.py use speedtest-cli # the content below is the echo content (the whole process takes a little time) **************************************** ************************ Retrieving speedtest.net configuration... retrieving speedtest.net server list... testing from China Unicom ###### (0.0.0.0 )... selecting best server based on ping... hosted by Vladlink (synchronized Vostok) [509.76]: 14.623 msTesting download speed .................................... .... download: 2.10 Mbit/sTesting upload speed .................................. ................ upload: 0.41 Mbit/s ************************************ * *************************** # speedtest-cli-husage: speedtest-cli [-h] [-- share] [-- simple] [-- list] [-- server SERVER] [-- mini MINI] [-- source SOURCE] [-- version] Command line interface for testing internet bandwidth using speedtest.net. -------------------------------------------------------------------------- https://github.com/sivel/speedtest-cli Optional arguments:-h, -- help show this help message and exit -- 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 -- mini mini url of the Speedtest Mini server -- source SOURCE Source source IP address to bind to -- version Show the version number and exit # If you want to easily use speedtest-cli, you can perform the following operations on the speedtest-cli.py # sudo mv speedtest_cli.py/usr/local/bin/speedtest-cli # sudo chown root: root/usr/local/bin/speedtest-cli