ターミナルでスピードテストする

Category :

Pythonにはスピードテストをコマンド1つでできるパッケージが存在します。 今回はPython3で実行しましたが、2系でも実行可能です。

インストールはpipで行います。

pip install speedtest-cli

そして実行

speedtest

快適な速さです。

Retrieving speedtest.net configuration...
Testing from ARTERIA Networks Corporation (xxx.xxx.xxx.xxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by xxxx xxxxxx (xxxxx) [2.57 km]: 5.019 ms
Testing download speed................................................................................
Download: 103.44 Mbit/s
Testing upload speed......................................................................................................
Upload: 106.19 Mbit/s

参考

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

TOP
© 2021 uichi