chaperon
chaperon copied to clipboard
How to calculate req/sec?
Thanks for this great tool!
I'm using this library to test my Phoenix app.
But I'm quite new to load testing. I wonder how to calculate req/sec (using add_metric/3
I assume)?
If this is a feature that can be supported officially?
Hey, there is no built-in support for this yet. The main question is, do you want to get some histogram of requests performed to each given endpoint per second or just a single value, like the average req/s for all sessions? I think due to how sessions are run concurrently in separate Task processes it would make sense to calculate this at the Session level first and then merge the histograms of these req/s values at the end to give a final histogram of req/s for each (configured) endpoint. I think it would make sense to also not enable this by default (due to potential performance impacts) and requiring this to be configured either at the Scenario level, per running Session, or by passing an optional flag to the built-in HTTP request action functions.
I think the average req/s would be good enough (with the assumption that it's easier to implement)
And an optional flag to the HTTP request might be better?
Thanks for your reply!