Using Speedtest to test speed under Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.