Benchmarking with ab

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Benchmarking with ab

Post 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.
Post Reply