How to use Tespeed to test the speed of a network under Linux

Source: Internet
Author: User
Tags php language php script zip python script git clone

Many computer geeks know they can use to test speed, but this does not give you enough control over the test. Linux users like to enter commands in the terminal to complete the task, at least that's what I am.

Tespeed is a python tool with a lot of features that you can test at the end of the Internet. According to the documentation, it leverages the server, but the user can specify it manually.

Originally, the author wrote the Tespeed tool in the PHP language and proved that the ISP's network was far below what it advertised. But things are not always what they think, so the author ported his PHP script into Python, and his tools already have 180 star in GitHub.

It means alot.

How to test tespeed in Linux

Before running this Python program on your computer, make sure the system is satisfied with the tool's dependencies. Tespeed relies on the following two packages:



You can use the PIP package Management system to install lxml, just use the following command.

The code is as follows:

Pip Install lxml

Now we need to enter the following command to download the installation socksipy.

The code is as follows:


After the download is complete, unzip the and run the following command to clone the Tespeed warehouse to your local machine.

The code is as follows:

git clone

Then put the Socksipy folder in the Tespeed project that you cloned. Now we want to create an empty file called in socksipy like a screenshot.

Now that we have solved the dependency problem of the project, we can run it with the following command.

The code is as follows:


Something magical is going to happen next. The program will test your download and upload speed and display it in your terminal with beautiful colors.

There are a number of options in tespeed, such as-ls to list servers,--------------To specify proxy servers,-s to block debug (STDERR) output, and much more we'll explore in this tutorial.

If you want the results to appear in MB, you can follow the python option-mib.

The code is as follows:


After you use the-MIB option you can see that the units that measure the speed are changed.

One of the options I really like to use is-W, which converts standard output to CSV format.

The code is as follows:


Use the following command to list the servers.

The code is as follows:

Python Tespeed-ls

After you run the above command, you will see a list of servers that can be used to test upload and download speeds. My list is very long, so I won't share it in the tutorial.


Tespeed is indeed a high-performance Python script that helps users test upload and download speeds in a terminal. It supports a lot of options and you can specify the server you want to use in the list. Continue using Tespeed and write down your experiences in the message area.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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: and provide relevant evidence. A staff member will contact you within 5 working days.