Skip to main content

Module download

Module download 

Source
Expand description

Multi-stream download bandwidth measurement.

This module handles downloading test files from speedtest.net servers to measure download bandwidth. It supports:

  • Multi-stream concurrent downloads (4 streams by default, 1 with --single)
  • Dynamic test URL construction from server base URL
  • Real-time progress tracking with speed calculation
  • Peak speed detection through periodic sampling

Functionsยง

build_test_url
Build test file URL using Speedtest.net standard naming
extract_base_url
Extract base URL from server URL (strip /upload.php suffix)
run
Run download bandwidth test against the given server.