命令行测试网速

内容

https://www.layerstack.com/ 的客户那里知道的技巧, 因为我对他们 vps 的速度有质疑….呜呜..

非常棒的一个 python 脚本

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -

结果是这样

➜  ~ curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -

Retrieving speedtest.net configuration...
Testing from China Telecom Yunnan (106.57.251.66)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by China Mobile,GuiZhou (Guiyang) [430.77 km]: 63.191 ms
Testing download speed................................................................................
Download: 65.56 Mbit/s
Testing upload speed................................................................................................
Upload: 1.35 Mbit/s

会选择地理位置最近的一个网站来 test, 给出的信息也很全.

如果设置了 http_proxy 记得 unset