Skip to content

Instantly share code, notes, and snippets.

@labbati
Last active April 21, 2020 10:07
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 labbati/d21465ccdd487e40ca0fff538c9b5649 to your computer and use it in GitHub Desktop.
Save labbati/d21465ccdd487e40ca0fff538c9b5649 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
read -r -d '' TIMING_COMMAND <<- EOM
-------------------------------
time_namelookup: %{time_namelookup}s
time_connect: %{time_connect}s
time_appconnect: %{time_appconnect}s
time_pretransfer: %{time_pretransfer}s
time_redirect: %{time_redirect}s
time_starttransfer: %{time_starttransfer}s
---------
time_total: %{time_total}s
-------------------------------\n
EOM
curl --write-out "$TIMING_COMMAND" $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment