Tespeed-Python tool for testing network speed

Source: Internet
Author: User

Tespeed-Python tool for testing network speed

Many computer geeks know that they can use some speed measurement websites to test the network speed, but this cannot give you enough control in the test. Linux users like to enter commands in the terminal to complete the task, at least I do.

Tespeed is a python tool with many features. It can test the network speed on the terminal. According to the documentation, it uses the speedtest.net server, but you can manually specify it.

Initially, the author wrote the tespeed tool in php and proved that the network provided by the ISP is much lower than what it said in its advertisement. But this is not what they always think, so the author transplanted his php script to python, and his tool already has 180 stars in github.

It means alot.

 

How to test tespeed in linux

Before running this python program on your computer, make sure that the system has satisfied the dependency of this tool. Tespeed depends on the following two packages:

  • Lxml
  • SocksiPy

You can use the pip package management system to install lxml. You only need to use the following command.

  1. pip install lxml

Now we need to enter the following command to download and install SocksiPy.

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

After the download is complete, decompress socksipy.zip and run the following command to clone the tespeed repository to your local machine.

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

Then, put the SocksiPy folder in the cloned tespeed project. Now we want to create an empty file named init. py in SocksiPy like that.

Now we have solved the project dependency problem. We can run the following command.

  1. python tespeed.py

Next, some amazing things will happen. The program will test your download and upload speed and display it in beautiful colors on your terminal.

There are many options in tespeed, such as-ls to list servers,-p to specify proxy servers, and-s to block debugging (STDERR) output. There are many other options we will explore in this tutorial.

If you want to display the result in MB, you can connect the option-mib after python tespeed. py.

  1. python tespeed.py -mib

After you use the-mib option, you can see that the unit of the metering network speed has changed.

One of my favorite options is-w, which converts standard output to CSV format.

  1. python tespeed.py -w

Use the following command to list servers.

  1. python tespeed -ls

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

 

Summary

Tespeed is indeed a high-performance python script that helps you test the upload and download speeds on your terminal. It supports many options and you can specify the server you want to use in the list. Continue to use tespeed and write down your experience in the message area.

This article permanently updates the link address:

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.