Görüyorum ki adblocker kullanıyorsun
Press "Enter" to skip to content

Internet speed test

Internet speed is known in our country, not enough. I believe that will develop over time. There are a lot of websites available (speedof, fast, testmy) to check that the companies we receive internet service give us the speed of the package we choose one-to-one, but in general, use is a popular speedtest site.

When you open the site through the browser, you will see a single button. You can start the speed test by clicking on this button.

But what I’m trying to say in this article is not to do a speed test graphically, but to do it through the console.

To do this, we need to download the console script of speedtest to our computer.

What is Speedtest-cli?

It is a script written in python programming language that measures internet speed in two directions (download, upload).

How to Install Speedtest-cli? 

It can be installed in two ways, you can install the package with apt-get if you want, you can install it with a python pip. Or you can choose the more troublesome path and upload it manually.

Before installing with apt-get, it is worth updating the system with the apt-get update command.

A
apt-get install speedtest-cli
pip install speedtest-cli

For manual installation, you can download speedtest-cli from the Github page and run the script with speedtest_cli.py after you give the run permission.

wget https://github.com/sivel/speedtest-cli/archive/master.zip

unzip master.zip

cd speedtest-cli-master/

chmod 755 speedtest_cli.py

Speedtest-cli Usage 

Without giving any arguments through the console 

speedtest-cli

you can start the speed test by typing. After waiting a while, it will show you where you are testing, which server you connect to, ping time between you and the server, and downlaoad, upload speed.

Retrieving speedtest.net configuration...
Testing from Turk Telekom (88.230.173.229)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by IsimKayit.com (Kocaeli) [46.36 km]: 25,131 ms
Testing download speed................................................................................................................................................................................................................................................................................
Download: 10.82 Mbit/s
Testing speed.............................................................................................................................................................................................................................................................................................................................................
Upload: 2.91 Mbit/s

Perform a speed test with arguments

You can personalize the speed test a little more by adding arguments.

Speed result bit slated to get byte instead of byte 

speedtest-cli --bytes

we’re writing. 

If you want to get the speed result as a picture

speedtest-cli --share

we start the test with the code and when it’s over, it gives you a picture link. This image contains information such as download, upload speed, ping value, date on which the test was performed.

If you want a simpler result, you can perform the speed test with this argument.

speedtest-cli --simple

It only allows you to show ping value, download and upload speed.

You can use the following command for more options and help.

speedtest-cli --help

Result

This script is generally useful for home users, even if it is useful for home users to work for those who deal with the server. It takes less time to go into the site and take a speed test, and it’s 🙂 more effortless

Be First to Comment

    Leave a Reply