Skip to content

Instantly share code, notes, and snippets.

@mhou1981
Last active August 31, 2018 17:29
Show Gist options
  • Save mhou1981/8abc5ea83f454cabc20144b42c1ad8c2 to your computer and use it in GitHub Desktop.
Save mhou1981/8abc5ea83f454cabc20144b42c1ad8c2 to your computer and use it in GitHub Desktop.
Testing web page load time with CURL command
# Tested on CURL v 7.29.0
curl -s -w 'Testing Website Response Time for :%{url_effective}\nRemote IP: %{remote_ip}\nResponse Code: %{response_code}\n\nDNS Lookup Time:\t%{time_namelookup}\nConnect Time:\t\t%{time_connect}\nAppCon Time:\t\t%{time_appconnect}\nRedirect Time:\t\t%{time_redirect}\nPre-transfer Time:\t%{time_pretransfer}\nStart-transfer Time:\t%{time_starttransfer}\n\nTotal Time:\t\t%{time_total}\n' \
-o /dev/null \
https://www.google.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment