Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 892
Sahal Avatar asked Jul 26 '11 13:07

Sahal


People also ask

What is concurrency in Apache benchmark?

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.

What is concurrent request?

The number of concurrent requests refers to the number of requests that the system can process simultaneously. When it comes to a website, concurrent requests refer to the requests from the visitors at the same time.

How do I use Apache benchmark tool?

Apache Bench (ab) is a load testing and benchmarking tool for Hypertext Transfer Protocol (HTTP) server. It can be run from command line and it is very simple to use. A quick load testing output can be obtained in just one minute.

What is non 2xx responses?

Non-2xx responses. The number of responses that were not in the 200 series of response codes. If all responses were 200, this field is not printed. Keep-Alive requests. The number of connections that resulted in Keep-Alive requests.


1 Answers

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?

like image 93
Rakesh Sankar Avatar answered Sep 17 '22 21:09

Rakesh Sankar