Skip to content

Instantly share code, notes, and snippets.

@girvan
Created November 3, 2017 01:06
Show Gist options
  • Save girvan/4c5a91415b67f7e5538f79d8f5f0e031 to your computer and use it in GitHub Desktop.
Save girvan/4c5a91415b67f7e5538f79d8f5f0e031 to your computer and use it in GitHub Desktop.
cd ~/tmp/
url1=https://...
url2=https://...
url3=https://...
for i in {1..500000}; do
time1=$(curl -o /dev/null -s -w %{time_total} $url1)
time2=$(curl -o /dev/null -s -w %{time_total} $url2)
time3=$(curl -o /dev/null -s -w %{time_total} $url3)
now=$(date +"%H:%M")
echo -e "$now\t$time1\t$time2\t$time3" >> 100k.log
sleep 60;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment