Sep 232013

Here is a little script which show you how you can pull the response time of a website. This idea was pulled from an IBM articles and a script was written to do this. Here is the script:

touch curlcheck
vim curlcheck

and insert the following:

echo -n "Please pass the url you want to measure: "
read url
result=`$CURL -o /dev/null -s -w %{time_connect}:%{time_starttransfer}:%{time_total} $URL`
echo " Time_Connect Time_startTransfer Time_total "
echo $result | $GAWK -F: '{ print $1" "$2" "$3}'

to save the file



chmod +x curlcheck

run the script

[email protected]:~#:sudo ./curlcheck
Please pass the url you want to measure:
Time_Connect Time_startTransfer Time_total
1.122 3.455 9.205


Share This!
 Posted by at 8:40 am

Sorry, the comment form is closed at this time.