Saturday, August 9, 2014

Curl commands to check the performance of a site

$ for X in `seq 60`;do curl -Ik -w "HTTPCode=%{http_code} timeconnect=%{time_connect} timetransfer=%{time_starttransfer} Total_time=%{time_total}\n" https://www,example.com -so /dev/null; done
HTTPCode=200 timeconnect=0.192 timetransfer=0.556 Total_time=0.556
HTTPCode=200 timeconnect=0.065 timetransfer=0.404 Total_time=0.404
HTTPCode=200 timeconnect=0.065 timetransfer=0.413 Total_time=0.413


$ for X in `seq 60`;do curl -k -w "HTTPCode=%{http_code} timeconnect=%{time_connect} timetransfer=%{time_starttransfer} Total_time=%{time_total}\n" https:/www.example.com -so /dev/null; done
HTTPCode=200 timeconnect=0.071 timetransfer=14.218 Total_time=14.218
HTTPCode=200 timeconnect=0.071 timetransfer=16.716 Total_time=16.716
HTTPCode=200 timeconnect=0.065 timetransfer=19.961 Total_time=19.962


$ curl -vv --insecure --o /dev/null -s -w %{time_connect}:%{time_starttransfer}:%{time_total} 'https://www.example.com'

No comments:

Post a Comment