Measuring web server performance.
BASE="http://YOURSITE.com";
for i in 1 2 3; do echo "========test $i"; time for w in $LIST; do curl -s -o /dev/null "$BASE/$w" ; done ; sleep 2; done
The list is like
# LIST="something.html
blah.html
image.png"
It will do the operation 3 times and display how long it took to get each list of documents. Simple!
Replace BASE with the different servers and run again.
0 Comments:
Post a Comment
<< Home