Skip to main content

Module speed_test

Module speed_test 

Source
Expand description

Speed Test Module

A robust, high-performance speed-test implementation tuned for accuracy (results comparable to speedtest.net):

  • Throughput is measured against a reliable anycast backend (speed.cloudflare.com, which routes to the nearest edge and actually implements the download/upload protocol) rather than a mix of discovered servers that may not serve the endpoint.
  • 50 parallel connections to saturate fast links.
  • Lock-free (atomic) byte counting, so the measurement itself is not the bottleneck at gigabit speeds.
  • Excludes the TCP slow-start warmup window and reports a trimmed, steady-state sustained throughput.
  • Geolocation-based server selection is still used for latency/ping.
  • Support for speeds up to 10 Gbps, with graceful failure (0 Mbps -> ConnectionQuality::Failed) instead of a misleading floor.

Structs§

GeoLocation
ServerPerformance
SpeedTest