Skip to content

Instantly share code, notes, and snippets.

@houstondapaz
Created June 7, 2022 17:38
Show Gist options
  • Save houstondapaz/fc079468d2c2f325d2ccc89aea0ad2b7 to your computer and use it in GitHub Desktop.
Save houstondapaz/fc079468d2c2f325d2ccc89aea0ad2b7 to your computer and use it in GitHub Desktop.
execute curl and show times
#!/bin/bash
curl -w @- -o /dev/null -s "$@" <<'EOF'
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment