今までBNRスピードテストを使ってきたが、Linuxのcliからでは測定できないため別のものを探すことにした。
http://www.speedtest.net
がよく使われている様子。
インストール
$ sudo easy_install speedtest-cli
測定開始
$ speedtest
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from NTT PC Communications,Inc. (122.122.122.144)...
Selecting best server based on ping...
Hosted by World's Fastest Indian (Tokyo) [10.39 km]: 13.51 ms
Testing download speed........................................
Download: 65.87 Mbit/s
Testing upload speed..................................................
Upload: 21.29 Mbit/s
東京決め打ち
$ speedtest --server 251
これが良さそう
$ speedtest --server 251 --simple
Ping: 23.762 ms
Download: 51.55 Mbit/s
Upload: 41.98 Mbit/s
オプション
$ speedtest -h
usage: speedtest [-h] [--share] [--simple] [--list] [--server SERVER]
[--mini MINI] [--source SOURCE] [--version]
Command line interface for testing internet bandwidth using speedtest.net.
--------------------------------------------------------------------------
https://github.com/sivel/speedtest-cli
optional arguments:
-h, --help show this help message and exit
--share Generate and provide a URL to the speedtest.net share
results image
--simple Suppress verbose output, only show basic information
--list Display a list of speedtest.net servers sorted by distance
--server SERVER Specify a server ID to test against
--mini MINI URL of the Speedtest Mini server
--source SOURCE Source IP address to bind to
--version Show the version number and exit
CentOS5へのインストール手順
$ sudo yum install python-setuptools
$ sudo easy_install speedtest-cli