Skip to content

Instantly share code, notes, and snippets.

@mgeoffray
Created January 15, 2017 18:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mgeoffray/4838ff108c47f7a891d196c1fff56238 to your computer and use it in GitHub Desktop.
Bash - Get page load time informations
function get_pageload_time() {
curl -w "time_namelookup: %{time_namelookup}\ntime_connect: %{time_connect}\ntime_appconnect: %{time_appconnect}\ntime_pretransfer: %{time_pretransfer}\ntime_redirect: %{time_redirect}\ntime_starttransfer: %{time_starttransfer}\n----------\ntime_total: %{time_total}\n" -o /dev/null -s "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment