-
Notifications
You must be signed in to change notification settings - Fork 742
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
Appender: Add benchmarks #703
Conversation
The main reason to benchmark the non-blocking writer, IMO, is to compare its performance with a synchronous (blocking) writer, so that we can assess the performance benefit of this approach. Can you add a benchmark for multiple threads writing synchronously, so that we can compare these? |
Sure, will do! |
Following the release process for https://github.com/tokio-rs/tracing/blob/master/CONTRIBUTING.md and these changes are the only things left to commit before release. I'd like to hopefully get this released today so we can start using this crate internally. Note: I need to get PR #703 and PR #678 merged before release. Co-authored-by: Zeki Sherif <[email protected]> Co-authored-by: Eliza Weisman <[email protected]>
This PR is really old, but AFAICT, if the branch were to be made up-to-date again, we could merge this. |
This patch adds blocking and nonblocking benchmarks. This code is from an old PR (tokio-rs#703) that was never merged, and now ported to TOT so that it compiles. Co-authored-by: Zeki Sherif <[email protected]>
* appender: add initial set of benches This patch adds blocking and nonblocking benchmarks. This code is from an old PR (#703) that was never merged, and now ported to TOT so that it compiles. Co-authored-by: Zeki Sherif <[email protected]> * switch to no-op writers in benchmarks * fix macro resolution issue Co-authored-by: Zeki Sherif <[email protected]> Co-authored-by: David Barsky <[email protected]>
Closing since #2128 was merged :) |
* appender: add initial set of benches This patch adds blocking and nonblocking benchmarks. This code is from an old PR (#703) that was never merged, and now ported to TOT so that it compiles. Co-authored-by: Zeki Sherif <[email protected]> * switch to no-op writers in benchmarks * fix macro resolution issue Co-authored-by: Zeki Sherif <[email protected]> Co-authored-by: David Barsky <[email protected]>
* appender: add initial set of benches This patch adds blocking and nonblocking benchmarks. This code is from an old PR (#703) that was never merged, and now ported to TOT so that it compiles. Co-authored-by: Zeki Sherif <[email protected]> * switch to no-op writers in benchmarks * fix macro resolution issue Co-authored-by: Zeki Sherif <[email protected]> Co-authored-by: David Barsky <[email protected]>
Motivation
We needed benchmarks for tracing-appender
Solution
Added benches for non_blocking only and for non_blocking which delegates to a rolling file appender.
This is my first time writing a bench :)