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

二次信任 提交于 2019-12-03 17:23:04

问题


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


回答1:


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?




回答2:


From the manual page: -c concurrency Number of multiple requests to perform at a time. Default is one request at a time.



来源:https://stackoverflow.com/questions/6830854/what-is-concurrent-request-c-in-apache-benchmark

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!