views:

284

answers:

2

I am planning to setup nginx as reverse proxy. I will have apache to deliver my dynamic content, and nginx will deliver the static content.

My configuration i have now is just Apache with fastCGI. This gives me no configuration problems and runs great.

After I have set up nginx I want to run some benchmarks to see if I really got some performance increases, else i will switch back.

Does anyone know how I can benchmark this type of setup? Or maybe someone did this already and have some canned results, I will be glad to hear them.

PS. I know this is more a serverfault type of question, but i have seen numerous posts about apache and nginx so i thought i give it a try

+1  A: 

one word: ab

Javier
Thank you for the simple answer. I never knew apache has such a tool. Will this tool only give me the benchmark results for apache. Or will this also reflect the nginx changes I made to the setup.
Saif Bechan
it just does http queries, it's a simple way to compare any http server.
Javier
ab -k -n 10000 -c 50 http://url.to/testThis can test the front end/static pages or the passthroughs to apache for your dynamic content.Another possibility is http://www.acme.com/software/http_load/ which allows you to specify a list of URLs to test against. ab is a benchmark of somewhat limited utility but, you can at least get some general ideas from it.
Thank you guys. Clear answer just what i was looking for!
Saif Bechan
A: 

Better solution? Siege.

More accurate benchmarking tool than ab

Jon L.
welcome to SO. and i will check it out.
Saif Bechan