A way of measuring HTTP Response Time with cURL.
- curl is used to transfer data to and from a server
- in this example curl is used to measure website response time
curl -w "@curl-format.txt" -o -s www.costco.com
\n
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
-----------------------------\n
time_total: %{time_total}\n
\n
- time_namelookup - Start to end of name resolution
- time_connect - Start to end of TCP handshake
- time_appconnect - Start to end of SSL/SSH handshake
- time_pretransfer - Start to just before transfer begins
- time_redirect - Time for redirection to complete
- time_starttransfer - Start to First Byte of transfer
- time_total - Time to complete full operation