Skip to content

Instantly share code, notes, and snippets.

@purefan
Created April 17, 2013 08:31
Show Gist options
  • Save purefan/5402717 to your computer and use it in GitHub Desktop.
Save purefan/5402717 to your computer and use it in GitHub Desktop.
Small script to measure loading times, stores loading times in format: real 0m1.468s user 0m0.000s sys 0m0.008s repeatedly so another script or an improved version of this one would be needed to parse averages and whatnot
#!/bin/bash
for i in {1..200}
do
echo "Run $i"
(time curl -silent -L "http://server" -output /dev/null) > /dev/null 2>> "bench.log"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment