Last active
January 24, 2023 20:56
-
-
Save weeyin83/c697468c5986cb3385990fa1c4c2d72b 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
for i in {1..50}; do echo -n "Run # $i :: "; | |
curl -w 'Return code: %{http_code}; Bytes Received: %{size_download}; | |
Response Time: %{time_total}\n' https://www.insertyoururl.com -m 2 -o /dev/null -s; | |
done|tee /dev/tty|awk '{ sum+= $NF; n++ } END { if (n > 0) print "Average Response time =",sum / n; }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment