Python Speedtest

Nov 17, 2019 The official Speedtest CLI (Command Line Interface) from Ookla is a little more robust. It has all of the options of the python script and more. There are also several output formats not available with the unofficial python script. Ookla’s speedtest is also a little easier on the eyes. Built for software developers, system administrators and computer enthusiasts alike, Speedtest CLI is the first official Linux-native Speedtest application backed by Ookla®. With Speedtest CLI, you can easily: Measure internet connection performance metrics like download, upload, latency and packet loss natively without relying on a web browser. is an excellent website that lets you measure internet speed from your Raspberry Pi. It’s useful for checking the performance either for fault finding purposes or to see if you are getting the service promised by your ISP.

Matt Martz has created a Python project called speedtest-cli which allows you to do a basic upload/download measurement using SpeedNet’s infrastructure. It works fine on the Pi and is really easy to try out on the command line.



Downloading the utility is easy if you clone the projects git repository :

Running SpeedTest with Python

To run SpeedTest on the command line you need to navigate to the directory :


and then run the Python script using Python 3 :

The script will run and you should see something like this :

Python Speedtest Library

Share Internet Speed Results

If you add –share to the command like this :

it will create a link to an online image showing your results which you can share with your friends/family/enemies.

Here’s my result using WiFi on a Pi 3 :

Spectrum Speed Test

and with Ethernet :

The improved Ethernet bandwidth of the Pi 3 B+ gives a massive difference over previous models.

Installing using Apt


It is possible to install SpeedTest using Apt. This makes it slightly easier to run from the terminal but it may not be the latest version.

Mcafee speed test. Do you want to research connection speed for McAfee?'s Download Speed Test and Upload Speed Test log connection information to allow users to research real world Internet speed test results.'s speed test database stores information on millions of Internet connections. This tool can average connection speed for any Internet provider, country or city in the world. Speed up your PC’s performance. With each TechCheck scan, we’ll make recommendations on how to speed up your computer.Only available for Windows Vista, 7, 8.1, and 10.on Mobile only. McAfee ® Concierge Service.

You can install using:

Once installed you can run it using:

Python Speedtest Example

The share option can be used as shown above for the Python version:

Python Speedtest-cli

Browser-based Internet Speed Measurement

If you haven’t ever visited give it a try on your PC, Mac or laptop. Be sure to hit the oval “Begin Test” button in the centre of the page map rather than other buttons which may be adverts.

Python Speedtest-cli