In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to use tespeed applications to test network speed under the Linux system". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Many computer nerds know that speedtest.net can be used to test Internet speed, but this doesn't give you enough control during the test. Linux users like to type commands into the terminal to complete the task, at least that's what I do.
Tespeed is a python tool with many features that can be used to test Internet speed at terminals. According to the documentation, it makes use of speedtest.net 's server, but the user can specify it manually.
The author originally wrote the tespeed tool in PHP and proved that the network provided by ISP is much lower than what it advertises. But things haven't always been what they thought, so the author migrates his php script into python, and his tool already has 180 star in github.
It means alot .
How to test tespeed in linux
Make sure the system meets the tool's dependency before running the python program on your computer. Tespeed relies on the following two packages:
Lxml
SocksiPy
You can install lxml using the pip package management system, as long as you use the following command.
The code is as follows:
Pip install lxml
Now we need to enter the following command to download and install SocksiPy.
The code is as follows:
Wget http://sourceforge.net/projects/socksipy/files/socksipy/SocksiPy%201.00/SocksiPy.zip/
When the download is complete, extract the SocksiPy.zip and run the following command to clone the tespeed repository 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 you cloned. Now we need to create an empty file called init.py in SocksiPy like the screenshot.
Now that we have solved the project dependency problem, we can run it with the following command.
The code is as follows:
Python tespeed.py
Something amazing is going to happen next. 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,-s to block STDERR output, and many more we will explore in this tutorial.
If you want the result to be displayed as MB, you can add the option-mib after python tespeed.py.
The code is as follows:
Python tespeed.py-mib
After you use the-mib option, you can see that the unit for measuring network speed has changed.
One of my favorite options 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 running the above command, you will see a list of servers that can be used to test upload and download speed. My list is very long, so I won't share it in the tutorial.
This is the end of the content of "how to use tespeed applications to test network speed under the Linux system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.