背景
インターネットがやたら遅いので
回線速度を知りたくなったので。
概要
回線速度を確認するにあたって
speedtest-cli
https://github.com/sivel/speedtest-cli
をつかって測定する
speedtest-cliのインストールに
pipコマンドが必要だったので
brew経由でphthonをインストールする。
手順
brew経由でpythonをインストール
$ brew install python
※ 依存関係のあるsqlite, opensslも一緒にインストールされるので
入らない場合はbrewになんかのoption渡せばいいはず。
pipコマンドでspeedtest-cliをインストール
$ pip install speedtest-cli
speedtest-cliでターミナルから回線速度を確認する
$ speedtest-cli
以下のように回線速度が表示される
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Kddi Corporation (111.xxx.xxx.xx)...
Selecting best server based on latency...
Hosted by SoftEther Corporation (xxxxx) [75.53 km]: 114.369 ms
Testing download speed........................................
Download: 3.29 Mbit/s
Testing upload speed..................................................
Upload: 5.04 Mbit/s
遅!