Skip to content

Instantly share code, notes, and snippets.

@kurochan
Created January 8, 2016 02:39
Show Gist options
  • Save kurochan/1a847145f5139b20cde0 to your computer and use it in GitHub Desktop.
Save kurochan/1a847145f5139b20cde0 to your computer and use it in GitHub Desktop.
#!/bin/bash
curl $1 -o /dev/null -w \
"\
connect to %{url_effective}
DNS lookup end: @%{time_namelookup}sec\n\
connection established: @%{time_connect}sec\n\
request sent: @%{time_pretransfer}sec\n\
response receive start: @%{time_starttransfer}sec\n\
===================================================
complete: %{time_total}sec\n\
" \
2> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment