I need to perform 3 types of performance tests for apache.
- 500 requests/sec for 60 seconds duration
- 1000 requests/sec for 60 seconds duration
- 1500 requests/sec for 60 seconds duration
I went through httperf manual but, I am really confused with various options like, --rate , --num-call , --num-conn , --wsess
could anyone help me for following:
How to specify duration and how to configure --rate , --num-conn and --num-calls so test will execute for specified duration and with specified number of requests/sec?
I'd do something like this:
500 requests/sec for 60 seconds duration
1000 requests/sec for 60 seconds duration
1500 requests/sec for 60 seconds duration
NOTE1: The
--ratespecifies the fixed rate at which connections/sessions are to be created.NOTE2: The
--num-connspecifies the total number of connections to create. Therefore if you're creating X req/sec you need to do X * 60 secs, in order to specify the length of time.This last point was the hardest thing to figure out with httperf. The length of time is a function of the rate & the number of connections, you don't specify it.
So for your example:
See the man page for further details on httperf.
rate
num-conn