By Default Apache providing benchmarking command as "ab". With this command you can measure Number of requests to perform for the benchmarking session with no. of Number of multiple requests to perform at a time.
Command with Output
# ab -n 1000 -c 100 localhost/test.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: Apache/2.2.26
Server Hostname: localhost
Server Port: 80
Document Path: /test.php
Document Length: 7 bytes
Concurrency Level: 100
Time taken for tests: 0.195 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 230460 bytes
HTML transferred: 7014 bytes
Requests per second: 5121.43 [#/sec] (mean)
Time per request: 19.526 [ms] (mean)
Time per request: 0.195 [ms] (mean, across all concurrent requests)
Transfer rate: 1152.62 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.7 0 4
Processing: 3 18 4.7 17 30
Waiting: 3 18 4.7 17 30
Total: 7 19 4.4 18 31
WARNING: The median and mean for the initial connection time are not within a normal deviation
These results are probably not that reliable.
Percentage of the requests served within a certain time (ms)
50% 18
66% 19
75% 21
80% 22
90% 26
95% 28
98% 29
99% 29
100% 31 (longest request)
Note ::
"-n" switch for Number's of request.
"-c" switch for Number of multiple request at a time
Command with Output
# ab -n 1000 -c 100 localhost/test.php
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
Server Software: Apache/2.2.26
Server Hostname: localhost
Server Port: 80
Document Path: /test.php
Document Length: 7 bytes
Concurrency Level: 100
Time taken for tests: 0.195 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 230460 bytes
HTML transferred: 7014 bytes
Requests per second: 5121.43 [#/sec] (mean)
Time per request: 19.526 [ms] (mean)
Time per request: 0.195 [ms] (mean, across all concurrent requests)
Transfer rate: 1152.62 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.7 0 4
Processing: 3 18 4.7 17 30
Waiting: 3 18 4.7 17 30
Total: 7 19 4.4 18 31
WARNING: The median and mean for the initial connection time are not within a normal deviation
These results are probably not that reliable.
Percentage of the requests served within a certain time (ms)
50% 18
66% 19
75% 21
80% 22
90% 26
95% 28
98% 29
99% 29
100% 31 (longest request)
Note ::
"-n" switch for Number's of request.
"-c" switch for Number of multiple request at a time