Page 1 of 1

Benchmarking with ab

Posted: Mon May 18, 2009 10:38 am
by onion2k
Anyone here an expert in ab? I'm testing a site of mine locally, and half the requests are served quickly (385ms), but after that they slow right down. What can I do to work out why the site slows down with lots of concurrent connections? I'm considering implimenting some section caching with memcached but I don't want to go down that road until I know what's going on. I've had a go at profiling the script with xdebug too but that didn't really help.

EDIT: Correction. There's no problem. I wasn't aware that using the time limit option was bumping the number of requests right up. I thought I was benchmarking 250 requests when it was actually doing 1800. :)

EDIT 2: In case you have no idea what I'm talking about... http://httpd.apache.org/docs/2.0/programs/ab.html ... it's a tool for stress testing websites. It comes with Apache too, so you've probably got it already.