erotsppa
erotsppa

Reputation: 15021

How to benchmark apache with delays?

What is a good way to benchmark apache with a delay between requests from a unix command line? The only benchmark tool I know from the command line is ab and it doesn't support delays.

Upvotes: 7

Views: 4391

Answers (3)

Ryan McGeary
Ryan McGeary

Reputation: 239875

You could run ab through watch to delay the repeated access, but you're not going to be able to use the report summary for much.

watch -n 1 ab -n 3 http://serverfault.com/

Or run it through curl instead of ab

watch -n 0.4 curl http://serverfault.com/

More about watch: http://www.linfo.org/watch.html

Upvotes: 6

Pari Rajaram
Pari Rajaram

Reputation: 432

Commercial tools like HP loadrunner and Borland Silk have this feature. We call this delay between request as THINK TIME for n simulated users.

Upvotes: 0

Vinko Vrsalovic
Vinko Vrsalovic

Reputation: 340151

I just love The Grinder, a fully programmable testing tool. Sadly you can't run it completely from the command line, but I'd really give it a try if I were you.

Failing that, you have httperf which is indeed command line and supports "user sessions" (that is, delays) and many other options.

Upvotes: 0

Related Questions