Skip to content

Instantly share code, notes, and snippets.

@jhannah
Created August 10, 2022 16:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhannah/094f1ecc51b119e2ebd9c1709c17b2c9 to your computer and use it in GitHub Desktop.
Save jhannah/094f1ecc51b119e2ebd9c1709c17b2c9 to your computer and use it in GitHub Desktop.
curl format is fancy
curl -w "@curl-format.txt" -o /dev/null -s https://www.google.com
time_namelookup: 0.010029s
time_connect: 0.043444s
time_appconnect: 0.099994s
time_pretransfer: 0.100094s
time_redirect: 0.000000s
time_starttransfer: 0.184069s
----------
time_total: 0.189819s
cat curl-format.txt
time_namelookup: %{time_namelookup}s\n
time_connect: %{time_connect}s\n
time_appconnect: %{time_appconnect}s\n
time_pretransfer: %{time_pretransfer}s\n
time_redirect: %{time_redirect}s\n
time_starttransfer: %{time_starttransfer}s\n
----------\n
time_total: %{time_total}s\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment