benchmark web server with apache benchmarking tool

ab -n 9000 -c 900 localhost:8080/index.php
-n 9000 : Number of requests to perform for the benchmarking session -c 900 : Number of multiple requests to perform at a time
Sample Output
 Completed 900 requests
 Completed 1800 requests
 Completed 2700 requests
 Completed 3600 requests
 Completed 4500 requests
 Completed 5400 requests
 Completed 6300 requests
 Completed 7200 requests
 Completed 8100 requests
 Finished 9000 requests
 Server Software:        Apache/2.0.55
 Server Hostname:        localhost
 Server Port:            8080
 Document Path:          /index.php
 Document Length:        37949 bytes
 Concurrency Level:      10
 Time taken for tests:   407.890625 seconds
 Complete requests:      9000
 Failed requests:        25
    (Connect: 0, Length: 25, Exceptions: 0)
 Write errors:           0
 Total transferred:      342093375 bytes
 HTML transferred:       340598850 bytes
 Requests per second:    22.06 [#/sec] (mean)
 Time per request:       453.212 [ms] (mean)
 Time per request:       45.321 [ms] (mean, across all concurrent requests)
 Transfer rate:          819.03 [Kbytes/sec] received
 Connection Times (ms)
               min  mean[+/-sd] median   max
 Connect:        0    0   2.7      0      78
 Processing:   140  452 217.8    359    2265
 Waiting:       31  402 194.0    328    2218
 Total:        140  452 218.0    359    2265
 Percentage of the requests served within a certain time (ms)
   50%    359
   66%    390
   75%    421
   80%    515
   90%    750
   95%    968
   98%   1156
   99%   1281
  100%   2265 (longest request)

By: amaymon
2009-08-07 07:19:40

What Others Think

One fantastic contribution!
linuxrawkstar · 672 weeks and 4 days ago
such pages or forums are important so that people can know from where they can buy some good and free online softwares. They should post their question here on the page of responsive web design tester and will get answers pretty quickly. I will also do the same
KayGasaway · 19 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: