Speedtest is an open source software for testing network performance, and installing Speedtest under Linux can be used to test the speed of uploading and downloading of network exits to help troubleshoot network failures.
Speedtest Introduction
Because the company several project users to respond to the slow response time, the project itself is not a problem, the service and call the interface return information is more normal, conjecture is the network caused by bottlenecks, resulting in user requests when the network response congestion, lengthening the response time.
Speedtest.net is a relatively broad web site for testing broadband speeds, and Speedtest.net's work is not complicated: it loads JavaScript code in your browser and automatically detects the Speedtest.net server closest to you, and then sends HTTP to the server Get and post requests to test the uplink/downlink speed.
However, when there is no graphical desktop (for example, when you remotely log on to a server via the command line or use an operating system that does not have a graphical interface), flash-based, user-friendly speedtest.net will not work. Fortunately, 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.
Installing 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 on the first page begin test, wait a few seconds, view the test results:
PIP Installation
Speedtest is written in Python, you need to install PIP before using Pip,
PIP Installation: https://pip.pypa.io/en/stable/installing/
#开启epel源
Yum Install Python-pip–y
Installing SPEEDTEST-CLI
Pip Install Speedtest-cli
Installation 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.gitpython speedtest-cli/setup.py install
Shell Installation
Wget-o speedtest-cli Https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.pychmod +x Speedtest-cli./speedtest-cli
SPEEDTEST-CLI Use
Speedtest-cli–h/usr/bin/speedtest-cli–share/usr/bin/speedtest-cli–list
Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/
Using Speedtest to test speed under Linux