Skip to content

Instantly share code, notes, and snippets.

@steveyiyo
Created March 19, 2021 03:45
Show Gist options
  • Save steveyiyo/d6c63d72bf6c73a1a8409943ebbe5c39 to your computer and use it in GitHub Desktop.
Save steveyiyo/d6c63d72bf6c73a1a8409943ebbe5c39 to your computer and use it in GitHub Desktop.
Run iperf3 with the random speed
#!/bin/bash
stop=0
while [ $stop -le 10 ]; do
speed=$(shuf -i 1000000000-10000000000 -n 1)
echo "$speed"
iperf3 -c 103.158.187.18 -b "$speed"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment