I'm using Locust for load testing a site of mine and I'm curious about the difference between it and Apache Bench in terms of terminology.
With Apache Bench, you specify the number of requests (-n
) and the number of multiple requests, or concurrency (-c
).
Locust uses slightly different terminology. It has "Users to simulate" and "Hatch rate (users spawned/second)".
It is my understanding that "Users to simulate" would be the equivalent of number of requests in Apache Bench. Is that also true of -c
and "Hatch rate" where "Hatch rate" is essentially how many concurrent requests will be made?
For example, are these two essentially or close to equivalent?
ab -n 1000 -c 100 url
and Locust with 1000 users at a hatch rate of 100/second?
Note: I realize these two tools have very different capabilities and that Locust is a lot more flexible than Apache Bench. I'm really trying to understand the terminology difference.