Skip to content

Instantly share code, notes, and snippets.

@siakaramalegos
Last active October 22, 2018 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siakaramalegos/5cb22793cc519626cb04c71d1793e3f5 to your computer and use it in GitHub Desktop.
Save siakaramalegos/5cb22793cc519626cb04c71d1793e3f5 to your computer and use it in GitHub Desktop.
cURL response template to show timings, test with `curl -so /dev/null https://www.zasag.mn`
-w " namelookup: %{time_namelookup} s (dnslookup)\n connect: %{time_connect} s (tcp handshake = connect - namelookup)\n appconnect: %{time_appconnect} s (ssl handshake = appconnect - connect)\n pretransfer: %{time_pretransfer} s\nstarttransfer: %{time_starttransfer} s (wait = starttransfer - pretransfer)\n------------------\ntotal: %{time_total} s (data transfer = total - starttransfer)\nsize: %{size_download} bytes\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment