Skip to content

Instantly share code, notes, and snippets.

@jt2k
Last active October 20, 2016 18:59
Show Gist options
  • Save jt2k/9094377 to your computer and use it in GitHub Desktop.
Save jt2k/9094377 to your computer and use it in GitHub Desktop.
#!/bin/sh
curl -L -o /dev/null -s -w " Seconds (cumulative)
Name lookup: %{time_namelookup}
Connect: %{time_connect}
Pre-transfer: %{time_pretransfer}
Start transfer: %{time_starttransfer}
Redirect: %{time_redirect} (if applicable)
=====
Total: %{time_total}
" $1
@jt2k
Copy link
Author

jt2k commented Feb 19, 2014

Usage:

curltime http://jasontan.org/

Output:

                Seconds (cumulative)
Name lookup:    0.001
Connect:        0.032
Pre-transfer:   0.032
Start transfer: 0.081
Redirect:       0.000 (if applicable)
                =====
Total:          0.113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment