Hello, is there a way to send a specific number of requests in a specified time?
Example: I want to send 120 requests in one minute for a single user, that will be 2 requests per second, regardless response.
Why not pause, pace and throttle?
Pause is a specific wait time after when user receive the response, so it is affected by response time a lot
Pace is to wait regardless of time, but if the response taking longer time than pace (1.5 seconds i.e) then pace will not send new request, but wait until old one finish then send the new one immediately.
Throttle: not being nice to the workflow with many apis
I set the pace as 1000 millis, then my response time is 1500 millis, it leads to the total request being lower than expected
Edit: for your case, well pace is correct when response time lower than 500ms, but if higher…
Edit#2: if the response time is much higher than pace, i.e: 1000 millis pace but 3000 millis response time, it will shows the RPS being dropped very clear
The only way to achieve this would be that each user would perform concurrent requests.
Over HTTP/1.1, it would mean using multiple connections/
Over HTTP/2, it would mean concurrent streams.
This is not possible in Gatling atm (except for resources).
You would have to increase the number of users.