Skip to content

Instantly share code, notes, and snippets.

@BugRoger
Created March 24, 2015 14:31
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 BugRoger/f096f808fdb1676b7142 to your computer and use it in GitHub Desktop.
Save BugRoger/f096f808fdb1676b7142 to your computer and use it in GitHub Desktop.
curl-ttfb.sh
#!/bin/bash
while true; do
curl -so /dev/null -H "Pragma: no-cache" -H "Cache-Control: no-cache" \
-w "%{time_total}\t%{time_starttransfer}\t%{time_pretransfer}\t%{time_connect}\n" \
"$1?`date +%s`"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment