Linux网络测速

Linux下我们可以用 speedtest-cli 工具进行测速,适用于CentOS, Ubuntu, Debian.
下载工具

1
2
curl -o speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod +x speedtest-cli

运行脚本

1
./speedtest-cli

可以看到在我们服务器上的运行结果

1
2
3
4
5
6
Selecting best server based on latency...
Hosted by Foxcore-LS (Sodegaura) [26.76 km]: 6.804 ms
Testing download speed........................................
Download: 786.97 Mbit/s
Testing upload speed..................................................
Upload: 193.40 Mbit/s

下载速度是786Mbit每秒,也就是将近100MB每秒。