Created
November 3, 2017 01:06
-
-
Save girvan/4c5a91415b67f7e5538f79d8f5f0e031 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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