使用的speedtest的python腳本或工具,因此需要python環境
方法1:執行腳本
1.下載腳本
wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
2.賦予可執行權限
chmod +x speedtest.py
3.執行
./speedtest.py
執行后會打印出相關download、upload速率:
Testing download speed................................................................................ Download: 1126.35 Mbit/s Testing upload speed...................................................................................................... Upload: 1139.01 Mbit/s
注意單位為Mbit/s, 1MB/s等於8Mbit/s
方法2:安裝工具
沒有安裝pip可以執行安裝:
pip install --upgrade pip
1.開始安裝
pip install speedtest-cli
或
easy_install speedtest-cli
2.測試速率
命令行執行 speedtest-cli 命令即可,無需任何也可直接執行,返回結果及查看速率和方法1類似
部分參數如下:
speedtest-cli --bytes 以字節計算的方式來測試上下行速度
speedtest-cli --share 將速度測試的結果生成一張圖片鏈接
speedtest-cli --simple 只顯示ping和上下行速度
speedtest-cli --list 列出speedtest.net所有的服務器距離你的物理距離,單位是千米(km)
附winows、Android等系統帶寬測試方法
瀏覽器訪問Speedtest by Ookla - The Global Broadband Speed Test(或者實際網址https://www.speedtest.net/)
點擊頁面中央的[go] 按鈕即可開始測試速率