在Debian下进行网速测试,可以使用一款基于Python的cmd界面的测速程序speedtest-cli,可以进行到任意speedtest.net测速节点的网速测试。
安装
1 2 3 4 5 6 7 8 9 10 11 12 |
root@vps:~# pip install speedtest-cli Downloading/unpacking speedtest-cli Downloading speedtest-cli-0.3.2.tar.gz Running setup.py egg_info for package speedtest-cli Installing collected packages: speedtest-cli Running setup.py install for speedtest-cli Installing speedtest script to /usr/local/bin Installing speedtest-cli script to /usr/local/bin Successfully installed speedtest-cli Cleaning up... |
网速测试
1 2 3 4 5 6 7 8 9 10 |
root@vps:~# speedtest-cli Retrieving speedtest.net configuration... Retrieving speedtest.net server list... Testing from Linode (106.185.32.69)... Selecting best server based on latency... Hosted by BitSend (Tokyo) [6.97 km]: 8.543 ms Testing download speed........................................ Download: 280.11 Mbit/s Testing upload speed.................................................. Upload: 139.03 Mbit/s |
指定测试节点
1 2 3 4 5 6 7 8 9 |
root@vps:~# speedtest-cli --server 5120 Retrieving speedtest.net configuration... Retrieving speedtest.net server list... Testing from Linode (106.185.32.69)... Hosted by HKIX1 (Hong Kong) [2878.29 km]: 167.934 ms Testing download speed........................................ Download: 146.30 Mbit/s Testing upload speed.................................................. Upload: 30.55 Mbit/s |
参考
https://github.com/sivel/speedtest-cli
There are no comments yet