This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13035|Reply: 0

[linux] Test your internet speed using the Linux command line

[Copy link]
Posted on 6/23/2016 2:51:30 PM | | | |
When people notice that their internet speed is slowing down, they usually first test their computer's connection to the Internet service provider (often referred to as the "last mile"). Among the websites available to test broadband speeds, Speedtest.net is perhaps the most widely used.

Speedtest.net doesn't work complicated: it loads Javascrip{filtering}t code in your browser and automatically detects the Speedtest.net server closest to you, then sends HTTP GET AND POST requests to the server to test up/down speeds.

But without a graphical desktop (for example, when you log in to a server remotely via the command line or use an operating system without a graphical interface), Flash-based, user-friendly Speedtest.net won't work. Fortunately, Speedtest.net provides a command-line version - speedtest-cli. Below I will show you how to use speedtest-cli on the Linux command line to test broadband connection speed.

Install speedtest-cli

speedtest-cli is a lightweight Linux command-line tool written in Python that runs under Python versions 2.4 to 3.4. It is based on Speedtest.net infrastructure to measure the up/down rate of the network. Installing speedtest-cli is simple – just download its Python script file.


Test your internet speed with speedtest-cli

It's also simple to use the speedtest-cli command, which doesn't require any arguments to work.


When you enter this command, it will automatically discover the nearest Speedtest.net server (geographic distance) and then print out the tested network up/down rate.





Previous:Add the IP address of the monitoring request to the fiddler
Next:c# uses Sharppcap to implement the acquisition of the network adapter
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com