centos带宽测速——下载,上载速度

使用方法简单,无需下载、安装Speedtest.net还推出了命令行下测速工具speedtest.py 就能够实时测试网速

1.下载测试包

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py

2.运行

python   speedtest.py

等待执行结束,就可以看到测试结果了

Testing from Hangzhou Alibaba Advertising Co.,Ltd. (101.188.187.178)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by China Telecom JiangSu 5G (Zhenjiang) [225.88 km]: 14.393 ms
Testing download speed................................................................................
Download: 65.19 Mbit/s
Testing upload speed......................................................................................................
Upload: 0.37 Mbit/s

 

你可能感兴趣的:(python,测速)