Skip to content

Instantly share code, notes, and snippets.

@mariovisic
Created May 23, 2014 01:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariovisic/bafec7ab5c04fa9a47ec to your computer and use it in GitHub Desktop.
Save mariovisic/bafec7ab5c04fa9a47ec to your computer and use it in GitHub Desktop.
Simple ruby web app benchmarking tool
#!/usr/bin/env sh
website="http://studio.envato.com"
while [ 1 ]
do
time=$(curl -s -I $website | Grep Runtime | awk '{ print $2}')
printf "\rApp response: %.0fms " $(echo "$time * 1000" | tr -d $'\r' | bc)
sleep 0.25
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment