Skip to content

Instantly share code, notes, and snippets.

@wolendranh
Created December 15, 2016 11:55
Show Gist options
  • Save wolendranh/97b82e12544900cd1eb1cbc67bf2aa1e to your computer and use it in GitHub Desktop.
Save wolendranh/97b82e12544900cd1eb1cbc67bf2aa1e to your computer and use it in GitHub Desktop.
max=200
duration=99999999
delay=10
URL=some_url
#####
#mkdir -p results
echo > results
while /bin/true
do
count=1
while [ $count -le $max ]
do
curl -o /dev/null -m $duration -s -w "bytes %{size_download} avg %{speed_download} " "$URL" >> results &
curl -o /dev/null -m $duration -s -w "bytes %{size_download} avg %{speed_download} " "$URL" >> results &
curl -o /dev/null -m $duration -s -w "bytes %{size_download} avg %{speed_download} " "$URL" >> results &
curl -o /dev/null -m $duration -s -w "bytes %{size_download} avg %{speed_download} " "$URL" >> results &
curl -o /dev/null -m $duration -s -w "bytes %{size_download} avg %{speed_download} " "$URL" >> results &
curl -o /dev/null -m $duration -s -w "bytes %{size_download} avg %{speed_download} " "$URL" >> results &
curl -o /dev/null -m $duration -s -w "bytes %{size_download} avg %{speed_download} " "$URL" >> results &
curl -o /dev/null -m $duration -s -w "bytes %{size_download} avg %{speed_download} " "$URL" >> results &
curl -o /dev/null -m $duration -s -w "bytes %{size_download} avg %{speed_download} " "$URL" >> results &
curl -o /dev/null -m $duration -s -w "bytes %{size_download} avg %{speed_download} " "$URL" >> results &
curl -o /dev/null -m $duration -s -w "bytes %{size_download} avg %{speed_download} " "$URL" >> results &
[ "$delay" != "" ] && sleep $delay
let count=$count+10
done
wait
done
echo "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment