linux 上传下载测速
文章参考地址:
http://www.weeiy.com/linux-vps-net-u.html
简单实现步骤:
1、安装speedtest-cli
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod +x speedtest_cli.py
2、使用
./speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from China Telecom (115.238.155.184)...
Selecting best server based on latency...
Hosted by China Telecom ZheJiang Branch (Hangzhou) [139.35 km]: 5.666 ms
Testing download speed........................................
Download: 58.78 Mbit/s
Testing upload speed..................................................
Upload: 57.31 Mbit/s
–share 参数使用
./speedtest_cli.py --share
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from China Telecom (115.238.155.184)...
Selecting best server based on latency...
Hosted by China Mobile Group Shanghai Co.,LTD (Shanghai) [147.05 km]: 18.261 ms
Testing download speed........................................
Download: 57.54 Mbit/s
Testing upload speed..................................................
Upload: 54.10 Mbit/s
Share results: http://www.speedtest.net/result/4978668762.png