What is concurrent request (-c) in Apache Benchmark?

Sahal picture Sahal · Jul 26, 2011 · Viewed 18.3k times · Source

What is concurrent request (-c) in apache benchmark?

I think it is number of simultaneous request(Process) created in single point of time?

Can anybody explain if I am wrong? Can you give some example how concurrent request will work? How can I test this like Boundary Value Analysis(BVA) testing

Answer

Rakesh Sankar picture Rakesh Sankar · Jul 27, 2011

You are correct.

In simple words, ab -n 1000 -c 5 http://www.example.com/

where,

-n 1000: ab will send 1000 number of requests to example.com server in order to perform for the benchmarking session

-c 5 : 5 is concurrency number i.e. ab will send 5 number of multiple requests to perform at a same time to example.com server

Came across the following SO question where one of the answer says ab is not a perfect benchmark tool, since, you have CSS/JS/Images factors to consider when it comes to benchmark - Can someone please explain what these ApacheBench results mean?