Skip to content

Instantly share code, notes, and snippets.

@drsnyder
Created January 27, 2014 19:21
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 drsnyder/8655558 to your computer and use it in GitHub Desktop.
Save drsnyder/8655558 to your computer and use it in GitHub Desktop.
Simple perf stats
for i in {1..20}; do ( time -p curl -I -s http://www.site.com ) 2>&1 | grep real | cut -c6-; done | sort -n | awk '{ d[NR]=$1; } END { print NR, "-", d[1], d[int(NR*0.5)], d[int(NR*0.95)], d[NR]; }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment