Last active
March 1, 2021 10:22
-
-
Save alexaandrov/bf0b14295ac65c95da6a2bbe2a3530ea to your computer and use it in GitHub Desktop.
Response Time Site Utility
This file contains hidden or 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
#/bin/sh | |
uri=$1 | |
repeat=1 | |
if [[ ! -z $2 ]]; then | |
repeat=$2 | |
fi | |
while [ $repeat -gt 0 ]; do | |
echo "" | |
echo "==========================================" | |
echo "Response time $uri" | |
curl -s -w '\nLookup time:\t%{time_namelookup}\nConnect time:\t%{time_connect}\nAppCon time:\t%{time_appconnect}\nRedirect time:\t%{time_redirect}\nPreXfer time:\t%{time_pretransfer}\nStartXfer time:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n' -o /dev/null $uri | |
echo "==========================================" | |
repeat=$(($repeat - 1)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install
Usage