24 January 2018

Measuring web server performance.


There are many commands out there with nice timings of many things.

I just wanted to know how long would it take to get sequentially a bunch of pages from different servers.


You can do that with:


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

Too Cool for Internet Explorer