[root@ipfire ~]# pakfire status | head -2
Core-Version: 2.27-x86_64
Core-Update-Level: 176
[root@ipfire ~]# pakfire info speedtest-cli
Name: speedtest-cli
Summary: Command line interface for testing internet bandwidth
Version: 2.1.3-5
Size: 30.00 KB
Dependencies:
Pakfile: speedtest-cli-2.1.3-5.ipfire
Service InitScripts:
Installed: yes
Status: up-to-date
Speedtest utility is not good, it doesn’t report correct values, maybe it connect to the “wrong” test servers, I see it connects to servers in different country, not the nearest servers.
This is not limited to IPfire. Ubuntu has speedtest-cli
in repositories too and I measure similar values, not good, in many cases too low… I am not sure what is origin of the speedtest-cli package, maybe it is an old version of test from Ookla, maybe just some tool based on reverse engineering work.
Example
[root@ipfire ~]# speedtest --version
speedtest-cli 2.1.3
Python 3.10.8 (main, Dec 27 2022, 13:22:33) [GCC 11.3.0]
I am not in Poland…
[root@ipfire ~]# speedtest --list
Retrieving speedtest.net configuration...
8055) ObslugaPC (Gliwice, Poland) [301.25 km]
11307) Miconet sp. z o.o. (Mikolow, Poland) [317.52 km]
25259) AJC S.C. (Bielsko-Biała, Poland) [331.03 km]
39341) SferaNET S.A. (Bielsko-Biała, Poland) [331.03 km]
17569) Multi-NET Infrastruktura Sp. z o.o. (Bielsko-Biała, Poland) [331.03 km]
5998) E-SBL.NET (Bierun, Poland) [331.79 km]
26007) Cyber Grota (Bedzin, Poland) [334.53 km]
33322) dg-net.pl (Katowice, Poland) [338.93 km]
4857) InterSat (Myszkow, Poland) [351.27 km]
56230) Myszkowska Telewizja Kablowa sp. z.o.o. (Myszkow, Poland) [351.27 km]
Speed Test
[root@ipfire ~]# speedtest
Retrieving speedtest.net configuration...
Testing from T-Mobile xxxxxxx...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Miconet sp. z o.o. (Mikolow) [317.52 km]: 32.103 ms
Testing download speed................................................................................
Download: 16.75 Mbit/s
Testing upload speed......................................................................................................
Upload: 10.92 Mbit/s
Similar test from Ubuntu server, in this case download speed is measured correctly but upload is only 30% of real speed:
ubuntu@elite:~$ speedtest --version
2.0.0
ubuntu@elite:~$ speedtest
Retrieving speedtest.net configuration...
Testing from T-Mobile xxxxxxx...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Miconet sp. z o.o. (Mikolow) [317.52 km]: 29.967 ms
Testing download speed................................................................................
Download: 54.36 Mbit/s
Testing upload speed......................................................................................................
Upload: 3.04 Mbit/s
Ookla has CLI tool, it measures “correct” values. I measure similar values in web browser and those match my VDSL line.
ubuntu@budgie:~$ speedtest -V
Speedtest by Ookla 1.2.0.84 (ea6b6773cf) Linux/x86_64-linux-musl 5.4.0-150-generic x86_64
The official command line client for testing the speed and performance
of your internet connection.
ubuntu@budgie:~$ speedtest
Speedtest by Ookla
Server: xxxxxxx
ISP: T-Mobile xxxxxxx
Idle Latency: 6.67 ms (jitter: 0.53ms, low: 6.20ms, high: 7.30ms)
Download: 55.67 Mbps (data used: 26.4 MB)
17.76 ms (jitter: 0.97ms, low: 13.02ms, high: 20.98ms)
Upload: 9.95 Mbps (data used: 4.5 MB)
205.88 ms (jitter: 62.56ms, low: 37.12ms, high: 347.09ms)
Packet Loss: 0.0%
Result URL: https://www.speedtest.net/result/c/xxxxxxx