A lightweight HTTP server for testing internet speed and bandwidth by streaming data of specified sizes.
docker run -p 8080:80 ravshansbox/speed-test
Test it:
curl -o /dev/null "http://localhost:8080"
With custom configuration:
docker run -p 8080:80 -e DEFAULT_SIZE=512 -e CHUNK_SIZE=128 ravshansbox/speed-test
docker build -t speed-test .
docker run -p 8080:80 speed-test
npm install
npm start
This starts the server on port 3000 with hot reload enabled.
HTTP_PORT=8080 node src/index.mjs
HTTP_PORT - Port to listen on (default: 80)DEFAULT_SIZE - Default data size in MB (default: 1024)CHUNK_SIZE - Chunk size in KB for streaming (default: 64)GET /Streams random data for speed testing.
Query Parameters:
size (optional) - Size of data to stream in MB. Defaults to DEFAULT_SIZE (1024 MB).Example:
curl -o /dev/null "http://localhost:3000/"
curl -o /dev/null "http://localhost:3000/?size=100"
GET /healthHealth check endpoint.
Response: Status: OK
MIT
Content type
Image
Digest
sha256:6dacfc064…
Size
54.7 MB
Last updated
11 months ago
docker pull ravshansbox/speed-test