python一键测试网速
CentOS7.4
#git clone https://github.com/sivel/speedtest-cli.git
#cd speedtest-cli/
#./speedtest.py
测试结果:
Retrieving speedtest.net configuration…
Testing from CNISP Group (101.36.161.42)…
Retrieving speedtest.net server list…
Selecting best server based on ping…
Hosted by Beijing Broadband Network (Beijing) [1.67 km]: 20.224 ms
Testing download speed……………………………………………………………………..
Download: 9.04 Mbit/s
Testing upload speed……………………………………………………………………………………
Upload: 10.02 Mbit/s