Skip to content
Log In Sign Up info@muvcloud.com

Two Tools with Similar Names

"Speedtest CLI" can mean two different programs, and many instructions mix them up:

speedtestspeedtest-cli
Made byOoklaCommunity project
Written inCompiled binaryPython
Installed fromOokla's siteDistribution repositories
ReportsLatency, jitter, lossPing, no jitter

Both test against Ookla's network of test servers. Results from the Python tool can differ from Ookla's, partly because it depends on the server's CPU and Python version, and its project was archived in April 2026, so it receives no more fixes. A catch with the names: the distribution package of the Python tool installs a command called speedtest as well as speedtest-cli, the same name as Ookla's program. Install only one of the two, and remove the Python package before you install Ookla's.

Install Ookla's speedtest

Ookla offers the program as a plain archive for Linux, one per processor type, which works on every distribution. For a 64-bit x86 server, download it, look at what it contains, then unpack the program into /usr/local/bin:

sudo apt remove speedtest-cli    # Debian and Ubuntu, if installed
curl -fsSLO https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-x86_64.tgz
tar -tzf ookla-speedtest-1.2.0-linux-x86_64.tgz
sudo tar -xzf ookla-speedtest-1.2.0-linux-x86_64.tgz -C /usr/local/bin speedtest
speedtest --version

Version 1.2.0 was current when this guide was written; Ookla's CLI page lists the current archives, including one for ARM servers. Ookla's package repository had packages for Debian 12 and 13 and the RHEL family up to 9, but none for Ubuntu 24.04 or 26.04. To use it, download the setup script and read it before you run it, instead of piping it into a root shell:

curl -fsSLo speedtest-repo.sh https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh
less speedtest-repo.sh
sudo bash speedtest-repo.sh
sudo apt install speedtest

On AlmaLinux and Rocky Linux 9, the script is script.rpm.sh and the package is installed with sudo dnf install speedtest.

On its first run the program asks you to accept Ookla's license terms and, depending on where you are, its privacy terms. In scripts, accept them on the command line once you have read them:

speedtest --accept-license --accept-gdpr

Install speedtest-cli

The Python tool is packaged by Ubuntu and Debian:

sudo apt install speedtest-cli

On AlmaLinux and Rocky Linux 9 it is in the EPEL repository; EPEL 10 did not carry it when this guide was written. Because the project is archived, it may stop working if Ookla changes its servers.

Run a Test

speedtest
speedtest-cli --simple

Each tool picks a nearby test server by latency, then measures download and upload. Ookla's program prints the server it chose, the latency with its jitter, both speeds, and packet loss, or "Not available" where loss cannot be measured. --simple limits the Python tool to three lines: ping, download, and upload.

Choose a Test Server

Taskspeedtestspeedtest-cli
List servers-L--list
Use one server-s ID--server ID
JSON output-f json--json

Testing against the same server ID each time makes results comparable; the automatic choice can change between runs.

JSON Output for Scripts

speedtest -f json-pretty
speedtest -f json | jq '.download.bandwidth * 8 / 1000000'

In the JSON of Ookla's program, bandwidth is given in bytes per second, so the jq filter multiplies by 8 and divides by a million to get Mbit/s. The Python tool's --json output reports speeds in bits per second.

Reading the Results

  • Download and upload: in megabits per second (Mbps). Divide by 8 for megabytes per second: 800 Mbps is about 100 MB/s.
  • Latency: the round-trip time to the test server, in milliseconds. It depends mostly on distance.
  • Jitter: how much the latency varies. It matters for voice and video.
  • Packet loss: anything steady above zero is worth a closer look; see packet loss.

Why Results Vary

  • Distance: a longer path means higher latency and often lower speeds.
  • The test server: its port speed and load cap the result.
  • Your port speed: a 1 Gbit/s port shows a little under 1,000 Mbps, because headers use part of it.
  • Time of day: busy hours lower the numbers.
  • CPU: on a one-core server the tool itself can become the limit.

How speed, latency, and throughput relate is explained in latency vs bandwidth vs throughput and what is bandwidth.

Between Your Own Servers, Use iperf3

To measure the network between two of your own servers, use iperf3 instead: it tests exactly that path, with no third-party server in between. Start iperf3 -s on one server and run iperf3 -c with its address on the other; see iperf3.

Updated:

Linux VPS with Full Root Access

MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.

Cloud VPS Plans Starting at2.99 $/mo Cheap Linux VPS

No Limits on Service or Support

You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

Support specialist
  • 100% customer satisfaction goal
  • Our own hardware
  • 24/7 ticket and email support
  • 4 countries with locations