Skip to content

speedtest net package

negan07 edited this page May 16, 2021 · 14 revisions

opkg update && opkg install speedtest-net

Dependencies: busybox ( >= 1.31.1-178 )

Files included: speedtest-net.sh

GUI section: Networking

Nvram variables: none

Usage

Docs:

https://www.speedtest.net/apps/cli

speedtest-net.sh

Automate execution of speedtest .

https://www.speedtest.net

License:

https://www.speedtest.net/about/eula

https://www.speedtest.net/about/terms

https://www.speedtest.net/about/privacy

The script downloads all the necessary files needed to execute speedtest and run it accepting EULA & Privacy license agreements if needed.

This script should be executed from web GUI accepting EULA & Privacy license agreements on the related webpage.

It's recommended to run the test assuring:

  • the bandwidth is fully available (no upload/download sessions in progress)
  • with the less established wan connections possible
  • with wi-fi turned off on both bands (rc wlan stop)
  • samba file sharing disabled (rc smb stop)
  • ftp server disabled (rc ftpd stop)
  • media server disabled (rc mediaserver stop)
  • print server disabled (rc printserver stop)

and in general as much as possible services disabled to free the most available internal resources to avoid test result perturbations.

Usage

speedtest-net.sh --ca-certificate=/etc/ca-bundle.crt (<...> ... <...>)

Options (if present):

<...> parameters are optional and appended to the basic speedtest command & parameters.

Type: /tmp/speedtest -h ( speedtest-net.sh -h ) to see all the parameters available.

Web GUI

Accept both EULA & Privacy license agreements to enable settings and buttons. The choice will be stored after running Speed Test and until clicking: Clean Files .

Press Cancel to discard changes.

Press Clean Files to remove downloaded binaries, certificates and license acceptances from ramfs.

Press List Servers to show the ID list of the nearest servers available for testing.

Press Speed Test to run the test.

Select Rate unit Speed per second

GUI: select the Speed Rate unit of measurement, according with network performance.

CONSOLE:

Decimal bits (Mbps) auto-scaled prefix, bits per second ( /tmp/speedtest -a )

Decimal bytes (MB/s) auto-scaled prefix, bytes per second ( /tmp/speedtest -A )

Binary bits (Mibps) auto-scaled prefix, bits per second ( /tmp/speedtest -b )

Binary bytes (MiB/s) auto-scaled prefix, bytes per second ( /tmp/speedtest -B )

Use a specific Server

Specify a server ID number from one of the nearest available on the list.

GUI: click List Servers then type the remote server ID number in the related text box then click Speed Test .

CONSOLE: type: /tmp/speedtest -L to show the nearest server list; then type: /tmp/speedtest -s <servid_num> .