Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Speedtest results differ from what the Speedtest CLI reports #55

Closed
lucymhdavies opened this issue Aug 4, 2022 · 1 comment
Closed
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@lucymhdavies
Copy link

lucymhdavies commented Aug 4, 2022

With the CLI:

root@nclient-rpi-46ec8662-tainted:~# ./speedtest

   Speedtest by Ookla

     Server: razorblue - Leeds (id = 17449)
        ISP: Sky Broadband
    Latency:    11.74 ms   (0.83 ms jitter)
   Download:   736.45 Mbps (data used: 1.1 GB )
     Upload:   108.14 Mbps (data used: 191.4 MB )
Packet Loss:     0.0%

However, the exporter consistently reports less than that. For example:

INFO[0126] Speedtest exporter starting                   source="speedtest_exporter.go:88"
2022/08/05 09:48:21 Testing download speed
2022/08/05 09:48:21 Starting test at: 2022-08-05 09:48:21.920180567 +0100 BST m=+126.629379847
.2022/08/05 09:48:21 Starting test at: 2022-08-05 09:48:21.96699229 +0100 BST m=+126.676191439
.2022/08/05 09:48:22 Starting test at: 2022-08-05 09:48:22.015578141 +0100 BST m=+126.724777310
.2022/08/05 09:48:22 Starting test at: 2022-08-05 09:48:22.074364678 +0100 BST m=+126.783563847
.2022/08/05 09:48:22 Starting test at: 2022-08-05 09:48:22.145855901 +0100 BST m=+126.855055069
.2022/08/05 09:48:22 Starting test at: 2022-08-05 09:48:22.333710697 +0100 BST m=+127.042909846
.2022/08/05 09:48:22 Starting test at: 2022-08-05 09:48:22.588437363 +0100 BST m=+127.297636513
.2022/08/05 09:48:23 Starting test at: 2022-08-05 09:48:23.011429437 +0100 BST m=+127.720628605
.2022/08/05 09:48:23 Starting test at: 2022-08-05 09:48:23.478775511 +0100 BST m=+128.187974679
.2022/08/05 09:48:24 Starting test at: 2022-08-05 09:48:24.091344918 +0100 BST m=+128.800544068
.
INFO[0129] Speedtest Download: 203.33081262373443 Mbps   source="client.go:91"
2022/08/05 09:48:25 Testing upload speed
2022/08/05 09:48:25 Starting test at: 2022-08-05 09:48:25.174871121 +0100 BST m=+129.884070363
2022/08/05 09:48:25 Starting test at: 1659689305174871121 (nano)
2022/08/05 09:48:25 Finishing test at: 2022-08-05 09:48:25.221817658 +0100 BST m=+129.931016826
2022/08/05 09:48:25 Finishing test at: 1659689305221817658 (nano)
2022/08/05 09:48:25 Took: 46946463 (nano)
.2022/08/05 09:48:25 Starting test at: 2022-08-05 09:48:25.257852028 +0100 BST m=+129.967051178
2022/08/05 09:48:25 Starting test at: 1659689305257852028 (nano)
2022/08/05 09:48:25 Finishing test at: 2022-08-05 09:48:25.331548176 +0100 BST m=+130.040747345
2022/08/05 09:48:25 Finishing test at: 1659689305331548176 (nano)
2022/08/05 09:48:25 Took: 73696167 (nano)
.2022/08/05 09:48:25 Starting test at: 2022-08-05 09:48:25.402849213 +0100 BST m=+130.112048382
2022/08/05 09:48:25 Starting test at: 1659689305402849213 (nano)
2022/08/05 09:48:25 Finishing test at: 2022-08-05 09:48:25.509839843 +0100 BST m=+130.219039011
2022/08/05 09:48:25 Finishing test at: 1659689305509839843 (nano)
2022/08/05 09:48:25 Took: 106990629 (nano)
.2022/08/05 09:48:25 Starting test at: 2022-08-05 09:48:25.61713788 +0100 BST m=+130.326337048
2022/08/05 09:48:25 Starting test at: 1659689305617137880 (nano)
2022/08/05 09:48:25 Finishing test at: 2022-08-05 09:48:25.759140361 +0100 BST m=+130.468339529
2022/08/05 09:48:25 Finishing test at: 1659689305759140361 (nano)
2022/08/05 09:48:25 Took: 142002481 (nano)
.2022/08/05 09:48:25 Starting test at: 2022-08-05 09:48:25.901137472 +0100 BST m=+130.610336659
2022/08/05 09:48:25 Starting test at: 1659689305901137472 (nano)
2022/08/05 09:48:26 Finishing test at: 2022-08-05 09:48:26.081011454 +0100 BST m=+130.790210622
2022/08/05 09:48:26 Finishing test at: 1659689306081011454 (nano)
2022/08/05 09:48:26 Took: 179873963 (nano)
.
INFO[0130] Speedtest Upload: 72.37444943025025 Mbps      source="client.go:93"
2022/08/05 09:48:26 Testing latency: London (BRSK)
2022/08/05 09:48:26 	Run took: 16.092685ms
2022/08/05 09:48:26 Testing latency: London (BRSK)
2022/08/05 09:48:26 	Run took: 17.106259ms
2022/08/05 09:48:26 Testing latency: London (BRSK)
2022/08/05 09:48:26 	Run took: 17.993722ms
2022/08/05 09:48:26 Testing latency: London (BRSK)
2022/08/05 09:48:26 	Run took: 15.864056ms
2022/08/05 09:48:26 Testing latency: London (BRSK)
2022/08/05 09:48:26 	Run took: 15.939074ms
INFO[0130] Speedtest Latency: 15.864056 ms               source="client.go:100"
INFO[0130] Speedtest results: map[download:%!s(float64=203.33081262373443) ping:%!s(float64=15.864056) upload:%!s(float64=72.37444943025025)]  source="client.go:104"
INFO[0130] Speedtest exporter finished                   source="speedtest_exporter.go:98"
$ curl -s nclient-rpi-46ec8662-tainted:9112/metrics | grep "download\|upload"
# HELP speedtest_download Download bandwidth (Mbps).
# TYPE speedtest_download gauge
speedtest_download 203.33081262373443
# HELP speedtest_upload Upload bandwidth (Mbps).
# TYPE speedtest_upload gauge
speedtest_upload 72.37444943025025

Is there some configuration I'm missing?

@stale
Copy link

stale bot commented Oct 4, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 4, 2022
@stale stale bot closed this as completed Oct 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

1 participant