Skip to content

Instantly share code, notes, and snippets.

@girvan girvan/testing.sh
Created Nov 3, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.