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

前端 未结 2 1517
一整个雨季
一整个雨季 2021-02-08 06:35

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 i

相关标签:
2条回答
  • 2021-02-08 07:18

    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?

    0 讨论(0)
  • 2021-02-08 07:24

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

    0 讨论(0)
提交回复
热议问题