Welcome to the IPFire Wiki

This wiki is a community-maintained resource about everything there is to know about IPFire. Join us and help us improving it!

Looking for something?

Use the search and find answers to everything about IPFire. If you cannot find what you are looking for, join our community and talk to fellow IPFire users, developers and everybody else involved in the project.

IPFire Community

Differences in Revisions: speedtest-cli

»
Newer Revision
Tuesday at 12:42 am
Added FYI re Potential Inconsistency
# speedtest-cli
 
New add-on as of Core Update 137.
 
Command line interface for testing internet bandwidth using speedtest.net [^1]
 
 
## Installation
sysbench can be installed with the [Pakfire](/configuration/ipfire/pakfire) web interface or via the console:
 
```
pakfire install speedtest-cli
```
 
 
## Usage
There is **no web interface** for this Addon. To run this Addon open the client console or terminal and access the IPFire box via [SSH](/configuration/system/ssh).
 
To obtain a list of possible options:
```
speedtest -h
```
 
 
```text
[root@ipfire ~]# speedtest -h
usage: speedtest [-h] [--no-download] [--no-upload] [--single] [--bytes]
[--share] [--simple] [--csv] [--csv-delimiter CSV_DELIMITER]
[--csv-header] [--json] [--list] [--server SERVER]
[--exclude EXCLUDE] [--mini MINI] [--source SOURCE]
[--timeout TIMEOUT] [--secure] [--no-pre-allocate]
[--version]
 
Command line interface for testing internet bandwidth using speedtest.net.
--------------------------------------------------------------------------
https://github.com/sivel/speedtest-cli
 
optional arguments:
-h, --help show this help message and exit
--no-download Do not perform download test
. . .
```
 
### Example
 
```
[root@ipfire ~]# speedtest
Retrieving speedtest.net configuration...
Testing from xxxxxxxxx (nnn.nnn.nnn.nnn)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by aFastServer (Chicago, IL) [7.48 km]: 17.496 ms
Testing download speed................................................................................
Download: 135.02 Mbit/s
Testing upload speed......................................................................................................
Upload: 9.43 Mbit/s
```
FYI...
"*There is the potential for this tool to report results inconsistent with Speedtest.net. There are several concepts to be aware of that factor into the potential inconsistency:*
 
*1. Speedtest.net has migrated to using pure socket tests instead of HTTP based tests*
*2. This application is written in Python*
*3. Different versions of Python will execute certain parts of the code faster than others*
*4. CPU and Memory capacity and speed will play a large part in inconsistency between Speedtest.net and even other machines on the same network*
 
*Issues relating to inconsistencies will be closed as wontfix and without additional reason or context.*" [^1]
 
## Links
* [Github - sivel/speedtest-cli](https://github.com/sivel/speedtest-cli)
 
 
[^1]: https://github.com/sivel/speedtest-cli