How to test internet speed via command line

You firstly need to install git for farther checking

git clone https://github.com/sivel/speedtest-cli.git

./speedtest_cli.py

Output:

Retrieving speedtest.net configuration…
Retrieving speedtest.net server list…
Testing from xxxxxxx (xx.xx.xx.xx)…
Selecting best server based on ping…
Hosted by xxxxx (xxx, xx) [9.72 km]: 19.709 ms
Testing download speed………………………………….
Download: 85.50 Mbit/s
Testing upload speed…………………………………………..
Upload: 57.77 Mbit/s

How to specify server’s ID to test against

wget http://www.speedtest.net/speedtest-servers.php
cat speedtest-servers.php |grep 'Chicago, IL"' |tail -n 1

Output:

<server url=”http://speedtest.northcentraltower.com:8080/speedtest/upload.php” lat=”41.8369″ lon=”-87.6847″ name=”Chicago, IL” country=”United States” cc=”US” sponsor=”The Fusion Network” id=”7467″ url2=”http://speedtest2.northcentraltower.com/speedtest/upload.php” host=”speedtest.northcentraltower.com:8080″ />

where id is 7467

./speedtest.py --server 7467

Output:

Retrieving speedtest.net configuration…
Testing from xxxx xx (xx.xx.xx.xx)…
Retrieving speedtest.net server list…
Retrieving information for the selected server…
Hosted by The Fusion Network (Chicago, IL) [6610.78 km]: 1800000.0 ms
Testing download speed……………………………………………………………………..
Download: 401.26 Mbit/s
Testing upload speed……………………………………………………………………………………
Upload: 286.31 Mbit/s

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *