そこでサービスの変更などを検討する材料の1つにするために、接続回線の速度を定期的に計測しています。
ふだんは、
BETA SPEEDTESTを使っているのですが、FreeBSDから測定できないかと思い、検索してみました。
http://beta.speedtest.net
cliでインターネットの速度計測(speedtest.net)このWWWページのよれば、speedtest.net向けのPythonを使った計測ツールがあり、easy_installコマンドで簡単にインストールできるようです。
http://qiita.com/tukiyo3/items/78ab5a63aec20632c162
$ sudo easy_install speedtest-cli計測してみます。
パスワード:
Searching for speedtest-cli
Reading https://pypi.python.org/simple/speedtest-cli/
Downloading https://pypi.python.org/packages/d0/0a/58a7f08c498b2a4b582ab8aa6e1a7c45aa703fa3993a7a60bfc5a4e230c3/speedtest-cli-1.0.3.tar.gz#md5=dabf08c6250347e632c698897c1d2b47
Best match: speedtest-cli 1.0.3 Processing speedtest-cli-1.0.3.tar.gz
Writing /tmp/easy_install-8Ge7SU/speedtest-cli-1.0.3/setup.cfg
Running speedtest-cli-1.0.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-8Ge7SU/speedtest-cli-1.0.3/egg-dist-tmp-uBRNac
zip_safe flag not set; analyzing archive contents... Moving speedtest_cli-1.0.3-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding speedtest-cli 1.0.3 to easy-install.pth file
Installing speedtest script to /usr/local/bin
Installing speedtest-cli script to /usr/local/bin
Installed /usr/local/lib/python2.7/site-packages/speedtest_cli-1.0.3-py2.7.egg
Processing dependencies for speedtest-cli
Finished processing dependencies for speedtest-cli
$ speedtest-cliこんなものでしょうか。
Retrieving speedtest.net configuration...
Testing from □□□ (xxx.yyy.zzz.140)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by at2wn (Yokohama) [24.99 km]: 15.599 ms
Testing download speed................................................................................
Download: 4.86 Mbit/s
Testing upload speed....................................................................................................
Upload: 17.42 Mbit/s
$