Linux中上下行網速測試工具 speedtest-cli

speetest-cli 是linux下一個上下行網速測試工具,是一個用python寫的命令行腳本。python

須要python2.4-3.3支持。linux

github項目地址:https://github.com/sivel/speedtest-cligit


安裝方法有不少種:github


一、pip / easy_install服務器

pip install speedtest-clicurl

oride

easy_install speedtest-cli工具


二、Github測試

pip install git+https://github.com/sivel/speedtest-cli.giturl

or

git clone https://github.com/sivel/speedtest-cli.git

python speedtest-cli/setup.py install


三、Just download (Like the way it used to be)

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

chmod +x speedtest-cli

or

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

chmod +x speedtest-cli


下載後添加可執行權限,直接執行命令

會查找距離最近的speedtest.net服務器,並打印出你服務器當前的下行和上行帶寬。

[root@localhost ~]# ./speedtest-cli

Retrieving speedtest.net configuration...

Testing from China Telecom Guangdong (183.62.174.54)...

Retrieving speedtest.net server list...

Selecting best server based on ping...

Hosted by ShenZhen Telecom (Shenzhen) [0.00 km]: 1118.768 ms

Testing download speed................................................................................

Download: 4.65 Mbit/s

Testing upload speed................................................................................................

Upload: 9.15 Mbit/s


使用--share 參數,會將測試結果上傳到speedtest.net 服務器並以圖形方式展現。經過連接地址得到圖形報告,以下圖。

[root@localhost ~]# ./speedtest-cli --share

Retrieving speedtest.net configuration...

Testing from China Telecom Guangdong (183.62.174.54)...

Retrieving speedtest.net server list...

Selecting best server based on ping...

Hosted by 75510010 (ShenZhen) [0.00 km]: 2552.787 ms

Testing download speed................................................................................

Download: 2.43 Mbit/s

Testing upload speed................................................................................................

Upload: 2.31 Mbit/s

Share results: http://www.speedtest.net/result/7253182155.png

7253182155.png


使用./speedtest-cli -h 得到使用幫助

相關文章
相關標籤/搜索