[PYTHON] How to measure line speed from the terminal

When studying at a university library, the line speed sometimes slows down. So I tried to find out how to measure the line speed from the terminal.

1. Installation

$ wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py -O /usr/local/bin/speedtest
$ chmod u+x /usr/local/bin/speedtest

2. Set an alias (in .bashrc, etc.)

alias speedtest='/usr/local/bin/speedtest'

test

$ speedtest

Retrieving speedtest.net configuration...
Testing from Nagoya University (!address!)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by gatolabo (Maibara) [58.61 km]: 25.505 ms
Testing download speed................................................................................
Download: 18.74 Mbit/s
Testing upload speed....................................................................................................
Upload: 17.34 Mbit/s

reference

-[Measuring Internet speed from the terminal "speedtest_cli.py"](https://orebibou.com/2014/10/%E3%82%BF%E3%83%BC%E3%83%9F%E3% 83% 8A% E3% 83% AB% E4% B8% 8A% E3% 81% 8B% E3% 82% 89% E3% 82% A4% E3% 83% B3% E3% 82% BF% E3% 83% BC% E3% 83% 8D% E3% 83% 83% E3% 83% 88% E3% 82% B9% E3% 83% 94% E3% 83% BC% E3% 83% 89% E3% 82% 92% E8% A8% 88% E6% B8% AC /)

Recommended Posts

How to measure line speed from the terminal
How to create an article from the command line
How to instantly launch Jupyter Notebook from the terminal
How to operate Linux from the console
How to access the Datastore from the outside
[EC2] How to install and download chromedriver from the command line
How to extract the desired character string from a line 4 commands
How to operate Linux from the outside Procedure
[Python] How to remove duplicate values from the list
How to hit the document of Magic Function (Line Magic)
How to post a ticket from the Shogun API
(Remember quickly) How to use the LINUX command line
python3 Measure the processing speed.
How to use the generator
I tweeted from the terminal!
How to hack a terminal
How to use the decorator
How to increase the axis
How to start the program
How to pass arguments when invoking python script from blender on the command line
How to increase the processing speed of vertex position acquisition
How to calculate the amount of calculation learned from ABC134-D
How to log in automatically like 1Password from the CLI
How to do the initial setup from Django project creation
How to hit NAPALM from the Web (NetDevOpsSec reality solution)
How to calculate the autocorrelation coefficient
How to use the zip function
How to use the optparse module
How to use SWIG from waf
How to read the SNLI dataset
Output from Raspberry Pi to Line
How to get the Python version
[Python] How to import the library
How to launch Explorer from WSL
How to speed up Python calculations
How to overwrite the output to the console
How to access wikipedia from python
How to convert from .mgz to .nii.gz
How to use the ConfigParser module
Repeat with While. Scripts to Tweet and search from the terminal
How to get followers and followers from python using the Mastodon API
How to use Visual Recognition to get LINE ID from a girl
Terminal association from the server side to Amazon SNS (python + boto3)
How to resolve the error from toimage (from PIL.Image import fromarray as toimage)
How to display the progress bar (tqdm)
From the introduction of GoogleCloudPlatform Natural Language API to how to use it
How to create a clone from Github
How to use the Spark ML pipeline
How to speed up instantiation of BeautifulSoup
How to easily convert format from Markdown
How to check local GAE from iPhone browser in the same LAN
How to check the version of Django
How to solve the bin packing problem
How to update Google Sheets from Python
Learning record (4th day) #How to get the absolute path from the relative path
How to set the server time to Japanese time
Run the Matrix to your boss's terminal!
[TF] How to use Tensorboard from Keras
How to manually update the AMP cache
[Linux] How to use the echo command
How to use the Linux grep command