linux中利用speedtest-cli测网速

[root@elegant-snap-3 you-get]# wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
--2019-10-22 05:15:00--  https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.196.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.196.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 65018 (63K) [text/plain]
Saving to: ‘speedtest.py’

100%[=================================================================================================================================>] 65,018      --.-K/s   in 0.003s  

2019-10-22 05:15:00 (22.9 MB/s) - ‘speedtest.py’ saved [65018/65018]

[root@elegant-snap-3 you-get]# chmod +x ./speedtest.py 
[root@elegant-snap-3 you-get]# ./speedtest.py 
Retrieving speedtest.net configuration...
Testing from IT7 Networks (176.122.184.179)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Bel Air Internet LLC (Los Angeles, CA) [0.90 km]: 3.238 ms
Testing download speed................................................................................
Download: 833.87 Mbit/s
Testing upload speed................................................................................................
Upload: 793.63 Mbit/s
[root@elegant-snap-3 you-get]# 

就这样,我的国外vps速度很快,然而在国内的腾讯云vps上下行速度慢10倍,上行速度慢百倍,国内的vps硬盘慢网速也慢而且还贵,不是地理位置近些延迟低些真的毫无优点。。

image

posted @ 2019-10-22 17:25  九命猫幺  阅读(684)  评论(0编辑  收藏  举报