Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to calculate req/sec? #3

Open
dsdshcym opened this issue May 9, 2018 · 2 comments
Open

How to calculate req/sec? #3

dsdshcym opened this issue May 9, 2018 · 2 comments

Comments

@dsdshcym
Copy link

dsdshcym commented May 9, 2018

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?

@bakkdoor
Copy link
Member

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.

@dsdshcym
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants