今回は、ターミナル上からインターネットのスピードを計測することが出来るスクリプト『speedtest_cli.py』を紹介する。
使い方は簡単、ただダウンロードして権限を付与、そして実行するだけだ。

まずはダウンロードと実行権限の付与。

bash
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py chmod +x speedtest_cli.py

そしてコマンドを実行する。

shell
$ ./speedtest_cli.py Retrieving speedtest.net configuration... Retrieving speedtest.net server list... Testing from XXX Corporation (xxx.xxx.xxx.xxx)... Selecting best server based on latency... Hosted by World's Fastest Indian (Tokyo) [1.39 km]: 36.664 ms Testing download speed........................................ Download: 26.33 Mbits/s Testing upload speed.................................................. Upload: 19.52 Mbits/s

まぁ、こんなものかなぁ…