How to benchmark website?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
daemon's picture

I would like to test some caching configuration for my site. Could someone recommend me some tools to test the effectiveness of the site?

Also, if there are known configurations that work for a site with only anonymous users, please let me know! (currently using eAccelerator and Boost).

Thanks!

Comments

ApacheBench should be the

bennos's picture

ApacheBench should be the best solution.

"ab -n 1000 -c 10 URL" produces Ten thousend request with 10 concurrent User. Apachebench provides good statistics.

You can also use Apachebench with drupal http://drupal.org/project/apachebench.

Remember to run it from a

dalin's picture

Remember to run it from a separate server so as to not skew the results.

--
Dave Hansen-Lange
Web Developer
Advomatic LLC
East Asia Office
Hong Kong

--


Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his

Siege

eli's picture

Siege is similar to apachebench, but has some better options (IMHO). It's harder to set up though (if you're not on Linux)

I also find it useful to simulate a Page Cache miss by appending a timestamp to the end of the url so it looks like a new page to the cache module. E.g. http://example.com/about_us?117848302

jmeter

joshk's picture

jMeter is the best benchmarking tool for me. AB is great for a quick/easy test, so I still use that for profiling purposes, but when you want to set up some kind of actual predictive testing, jMeter offers a lot. You can set it up in reverse-proxy mode with a cookie handler and "record" a set of clicks and form-submits. You can create multiple groups of threads to run serveral "types" of traffic at once. Best of all, you can do this in the GUI, and then export the test plan to run server-to-server later.

http://jakarta.apache.org/jmeter/

http://www.chapterthree.com | http://www.outlandishjosh.com

for search engines