推薦一個測速腳本:
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 Alicloud-hk (47.52.239.243)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by GIAM PING VIETPN.COM (Hong Kong) [0.00 km]: 44.704 ms
Testing download speed................................................................................
Download: 15.43 Mbit/s
Testing upload speed................................................................................................
Upload: 27.92 Mbit/s
可以看出,本地下行網速:15.43Mbit/s,本地上行網速:27.92Mbit/s
Over.