Skip to content

Instantly share code, notes, and snippets.

@andrewfraley
Created December 3, 2023 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewfraley/386fa47939d8cb97d647cf035e9c31a9 to your computer and use it in GitHub Desktop.
Save andrewfraley/386fa47939d8cb97d647cf035e9c31a9 to your computer and use it in GitHub Desktop.
Spawn many concurrent speedtest-cli instances to saturate a multi-gig connection
#!/bin/bash
# Spawns a speed test instance for every server in the speedtest --list output (~9 servers)
# apt install speedtest-cli
# or
# python3 -m pip install speedtest-cli
sptest="speedtest --server "
servers=$(speedtest --list | grep -v Retrieving | awk -F ")" '{print $1}')
for server in $servers; do
$sptest $server &
done
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment