-
Notifications
You must be signed in to change notification settings - Fork 283
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
Asynchronous profiling #246
Comments
Hey, thanks for trying Criterion.rs, and thanks for the suggestion! This definitely doesn't exist now. Will it ever? Hard to say, really. I'm planning to open things up more for custom measurements in 0.3.0, so it might be possible to implement something like this in a third-party crate eventually. It doesn't seem like it would be a common-enough use case to belong inside Criterion.rs itself. On the other hand, whenever async/await support lands, it might be more useful to be able to benchmark systems involving asynchronous tasks. I'll leave this open as a wish-list item for now and see what the future brings. |
async fn is stable now. any new plans? |
If you want to benchmark async functions, I would recommend running them to completion using |
@bheisler That's a good point. You could convert my earlier example into valid code by using a one-shot channel future and then blocking on it. |
Hey, sorry if this is already addressed in another issue or worse yet the documentation, but I would love a way to do really custom profiling where I profile between two specific points in not-necessarily-synchronous code. For example,
Is something like this supported, or will it ever be?
The text was updated successfully, but these errors were encountered: