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
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.
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.
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.
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.
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With