Hello!
I need to calculate number of requests for specific method per minute. How can I do that ?
Do I need to use a custom metric for this ?
Hi @Daniil,
I’ve written an article explaining how to generate a constant request rate in k6 with the new scenarios API?. k6 v0.27.1 natively support constant-arrival-rate
executor, that can be used in scenarios to hit an endpoint with a fixed rate and specified amount of time. This contrast to the previous workaround I used to advocate for.
Using the new approach, you don’t need to calculate the request rate manually anymore.
1 Like