Speedtest is an open-source software for testing network performance, and installing Speedtest under Linux can be used to test the upload and download speeds of network exits and help troubleshoot network failures. |
Speedtest Introduction
Due to the company several project users to visit when the response is slow, the project itself is not a problem, the service and call the interface return information is more normal, guess is the bottleneck caused by the network, resulting in user requests when the network response congestion, elongated response time.
Speedtest.net is a more extensive web site for testing broadband speeds, and Speedtest.net's work is not complicated: it loads JavaScript code in your browser and automatically detects your nearest Speedtest.net server, and then sends HTTP to the server Get and post requests to test uplink/downlink speed.
But in the absence of a graphical desktop (for example, when you remotely log on to the server via the command line or using an operating system without a graphical interface), the speedtest.net based on Flash, user-friendly will not work. Luckily, Speedtest.net provides a command-line version of--SPEEDTEST-CLI. Below I will show you how to test the broadband connection speed using SPEEDTEST-CLI on the Linux command line. Install SPEEDTEST-CLI
GitHub Link: https://github.com/sivel/speedtest-cli
Speendtest.net Official website: http://www.speedtest.net/
Test the bandwidth of the local network exit, visit speendtest.net, click Begin Test on the first page, wait a few seconds, and view the test results:
PIP Installation
Speedtest is written in Python, and the PIP needs to be installed before you use the PIP.
PIP Installation: https://pip.pypa.io/en/stable/installing/
#开启epel源
Yum Install Python-pip–y
Install SPEEDTEST-CLI
Pip Install Speedtest-cli
Install complete test
which SPEEDTEST-CLI | bash–
GitHub Installation
Pip Install Git+https://github.com/sivel/speedtest-cli.git
Or
git clone https://github.com/sivel/speedtest-cli.git
python speedtest-cli/setup.py Install
Shell Installation
Wget-o speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod +x Speedtest-cli
./speedtest-cli
SPEEDTEST-CLI Use
Speedtest-cli–h
/usr/bin/speedtest-cli–share
/usr/bin/speedtest-cli–list