Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
48
Help us understand the problem. What is going on with this article?
@tukiyo3

cliでインターネットの速度計測(speedtest.net)

More than 5 years have passed since last update.

今まで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
48
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
tukiyo3

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
48
Help us understand the problem. What is going on with this article?