Last update at :2024-05-13,Edit by888u
How to use speedtest to measure speed in Linux environment. In fact, the superbench one-click package also comes with this network bandwidth speed test. Today I will talk about the speedtest speed test alone.
The Speedtest test network upload/download speed is quite good, and it is very convenient under Windows. Under Linux, you can also easily use the command line speedtest to test. 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 Speedtest.net's infrastructure to measure the network's up/down speed. Installing speedtest is easy, just download its Python script file:
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py chmod a+rx speedtest.py mv speedtest.py /usr/local/bin/speedtest chown root:root /usr/local/bin/speedtestAfter the installation is completed, type the command speedtest on the machine, and the download and upload speed will appear.
[root@woyard ~]# speedtest Retrieving speedtest.net configuration... Testing from Krypt Technologies (174.139.xxx.xxx)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by C3Network.Inc (Diamond Bar, CA) [21.03 km]: 2.994 ms Testing download speed................................................ ............................. Download: 465.07 Mbit/s Testing upload speed................................................ ................................................................. Upload: 489.54 Mbit/sAs shown in the picture above, I tested the speed with the American KT Los Angeles cloud host, and it turned out to be 200M speed. If you want to share test results, you can use the parameter –share and it will upload your test results to the Speedtest.net server and share them graphically with others. If you are interested in all currently available Speedtest.net servers, you can use the parameter –list. It will print out all the Speedtest.net servers (sorted by geographical distance from you).
[root@woyard~]# speedtest --list |more Retrieving speedtest.net configuration... 13654) Sprint (Anaheim, CA, United States) [6.24 km] 7017) C3Network.Inc (Diamond Bar, CA, United States) [21.03 km] 16620) Cox - Orange County (Orange County, CA, United States) [30.12 km] 17775) T-Mobile (El Monte, CA, United States) [32.57 km] 11603) Ultimate Internet Access (Ontario, CA, United States) [33.33 km] 14236) Frontier (Los Angeles, CA, United States) [45.09 km] 5031) AT&T (Los Angeles, CA, United States) [45.09 km] 16974) Spectrum (Los Angeles, CA, United States) [45.09 km] 18857) Bel Air Internet LLC (Los Angeles, CA, United States) [45.09 km] 18229) Starry, Inc. (Los Angeles, CA, United States) [45.09 km] 18401) Windstream (Los Angeles, CA, United States) [45.09 km] 18382) AT&T Wireless (Los Angeles, CA, United States) [45.09 km] 13516) Xfernet (Los Angeles, CA, United States) [45.09 km] 5303) Host Duplex (Los Angeles, CA, United States) [45.09 km] 18393) 2degrees (Los Angeles, CA, United States) [45.09 km] 22736) Inyo Networks Inc (Los Angeles, CA, United States) [45.09 km] 5861) WebNX (Los Angeles, CA, United States) [45.09 km] 22471) Aeroconnect Inc. (Los Angeles, CA, United States) [45.09 km] 5905) GigeNET (Los Angeles, CA, United States) [45.09 km] 17249) Wiline Networks (Los Angeles, CA, United States) [45.09 km] 9916) fdcservers.net (Los Angeles, CA, United States) [45.09 km] 21363) Enzu Inc. (Los Angeles, CA, United States) [45.09 km] --More--In the above list, each line is preceded by an ID corresponding to the server. If you want to use a specified node to test your network speed, you only need to specify its ID after the speedtest command. For example, if you want to use the 5031 server in the picture above, you only need to specify the corresponding server ID 5031.
speedtest --server 5031 Retrieving speedtest.net configuration… Testing from Krypt Technologies (174.139.xxx.161)… Retrieving speedtest.net server list… Retrieving information for the selected server… Hosted by AT&T (Los Angeles, CA) [45.09 km]: 7.631 ms Testing download speed……………………………………………………………….. Download: 435.32 Mbit/s Testing upload speed…………………………………………………………………………………… Upload: 459.45 Mbit/s [root@woyard ~]# speedtest --share Retrieving speedtest.net configuration... Testing from Krypt Technologies (174.139.202.161)... Retrieving speedtest.net server list... Selecting best server based on ping... Hosted by C3Network.Inc (Diamond Bar, CA) [21.03 km]: 6.014 ms Testing download speed................................................ ............................. Download: 467.90 Mbit/s Testing upload speed................................................ ................................................................. Upload: 488.26 Mbit/s Share results: http://www.speedtest.net/result/87638071859.png
Recommended site searches: free overseas servers, domain name reservations, free domain names, free personal cloud servers outside mainland China, foreign domain names, US virtual hosts, US website servers, Ministry of Industry and Information Technology registration inquiries, Taiwan servers, Ministry of Industry and Information Technology website registration System,
发表评论