一般我们常用的Bench.sh的性能测试工具,仅仅测试了服务器的下行带宽,但是我们使用服务器主要还是要看上行的,简单测试的话,就通过下面的语句吧~

使用方法

wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli
./speedtest-cli

运行结果

  • 他会自动找距离最近的进行测速
Retrieving speedtest.net configuration...
Testing from RUNNet (86.110.116.63)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Tele2 Russia (Moscow) [1.61 km]: 53.134 ms
Testing download speed................................................................................
Download: 81.07 Mbit/s
Testing upload speed................................................................................................
Upload: 229.19 Mbit/s

其他

  • 如果需要自己指定Server,请善用 -h命令,自行找咯~