5
4

More than 5 years have passed since last update.

speedtest-cliでターミナルからコマンドで回線速度を確認する。

Last updated at Posted at 2016-05-09

背景

インターネットがやたら遅いので
回線速度を知りたくなったので。

概要

回線速度を確認するにあたって
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

遅!

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4