Use speedtest to test the network speed of vps

888u

Last update at :2024-05-01,Edit by888u


[If you find that centos does not respond, you may want to try ubuntu 16]

Speedtest should be the most widely used network speed testing tool at present. We often use it when testing ss, but we always use it under windows, or install ss under our own vps, and then pass the local test.

In fact, Speedtest can also be easily tested using the command line speedtest under Linux. speedtest is a lightweight Linux command line tool written in Python and can run under Python 2.4 to 3.4. It is based on the infrastructure of Speedtest.net to measure the up/down speed of the network.

After we purchase a Linux vps, we can easily test the network condition through speedtest.

Installing speedtest is easy

wget --no-check-certificate -O speedtest https://raw.github.com/sivel/speedtest-cli/master/speedtest.py

chmod +x speedtest


The default speed measurement method only requires running a command:

./speedtest


If the above download address is invalid, please go to: https://pan.lanzou.com/1092674. After downloading, unzip and upload to VPS.


The output is as follows:

./speedtest-cli
Retrieving speedtest.net configuration...
Testing from QuadraNet (155.**.1*6.***)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by GigeNET (Los Angeles, CA) [1.30 km]: 2.713 ms
Testing download speed................................................ ........................
Download: 98.38 Mbit/s
Testing upload speed................................................ ................................................................. ...

Upload: 25.62 Mbit/s


But sometimes it is not accurate to judge the geographical location of the speed test server by the IP of the server, or if we want to test the speed of a specific area, we can do it by specifying the server ID.

First, open this page:

http://www.speedtest.net/speedtest-servers-static.php


Then you can use Ctrl + F to search for the physical location of the server you need. For example, we search for china and find the server in Xining, China for speed testing.

name="Xining" country="China" cc="CN " sponsor="Qinghai China Unicom" id="5992" url2="http://pureqh.eicp.net/speedtest/upload.aspx" host="221.207.32.94:8080"/>


You can see that the ID is 5992, so in the VPS, just run

./speedtest --server 5992

You can specify a server for speed testing

./speedtest-cli --server 5992
Retrieving speedtest.net configuration...
Testing from QuadraNet (155.**.1*6.***)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Qinghai China Unicom (Xining) [11128.33 km]: 249.414 ms
Testing download speed................................................ ........................
Download: 17.15 Mbit/s
Testing upload speed................................................ ................................................................. ...

Upload: 13.17 Mbit/s



If you have any questions, please communicate in the group: 569839985

Recommended site searches: Alibaba Cloud registration, how much does server defense cost, US host rankings, foreign servers, US server websites, free domain names, personal registered domain names, Jiangsu high defense servers, which is the best foreign server rental company, Hong Kong Cloud Server

Use speedtest to test the network speed of vps

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码