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

Appender: Add benchmarks #703

Closed
wants to merge 6 commits into from
Closed

Appender: Add benchmarks #703

wants to merge 6 commits into from

Conversation

thekeys93
Copy link
Contributor

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 :)

@thekeys93 thekeys93 requested review from hawkw and a team as code owners May 1, 2020 20:13
@hawkw
Copy link
Member

hawkw commented May 1, 2020

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?

@thekeys93
Copy link
Contributor Author

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!

hawkw added a commit that referenced this pull request May 5, 2020
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]>
@bryangarza
Copy link
Member

This PR is really old, but AFAICT, if the branch were to be made up-to-date again, we could merge this.

bryangarza added a commit to bryangarza/tracing that referenced this pull request May 16, 2022
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]>
bryangarza added a commit that referenced this pull request May 23, 2022
* 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]>
@bryangarza
Copy link
Member

Closing since #2128 was merged :)

@bryangarza bryangarza closed this May 23, 2022
hawkw pushed a commit that referenced this pull request Jun 6, 2022
* 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]>
hawkw pushed a commit that referenced this pull request Jun 7, 2022
* 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]>
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

Successfully merging this pull request may close these issues.

3 participants