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 speedtest.net 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 Speedtest.net 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:

lxml

Socksipy

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:

wget http://sourceforge.net/projects/socksipy/files/socksipy/SocksiPy%201.00/SocksiPy.zip/

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

The code is as follows:

git clone https://github.com/Janhouse/tespeed.git

Then put the Socksipy folder in the Tespeed project that you cloned. Now we want to create an empty file called init.py 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:

Python tespeed.py

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 tespeed.py option-mib.

The code is as follows:

Python Tespeed.py-mib

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:

Python tespeed.py-w

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.

Summarize

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

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.