Skip to content

Comments

Appender: Add benchmarks#703

Closed
thekeys93 wants to merge 6 commits intotokio-rs:masterfrom
thekeys93:appender-benches
Closed

Appender: Add benchmarks#703
thekeys93 wants to merge 6 commits intotokio-rs:masterfrom
thekeys93:appender-benches

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 a team and hawkw 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 <zekshi@amazon.com>
Co-authored-by: Eliza Weisman <eliza@buoyant.io>
@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 <9832640+zekisherif@users.noreply.github.com>
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 <9832640+zekisherif@users.noreply.github.com>

* switch to no-op writers in benchmarks

* fix macro resolution issue

Co-authored-by: Zeki Sherif <9832640+zekisherif@users.noreply.github.com>
Co-authored-by: David Barsky <me@davidbarsky.com>
@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 <9832640+zekisherif@users.noreply.github.com>

* switch to no-op writers in benchmarks

* fix macro resolution issue

Co-authored-by: Zeki Sherif <9832640+zekisherif@users.noreply.github.com>
Co-authored-by: David Barsky <me@davidbarsky.com>
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 <9832640+zekisherif@users.noreply.github.com>

* switch to no-op writers in benchmarks

* fix macro resolution issue

Co-authored-by: Zeki Sherif <9832640+zekisherif@users.noreply.github.com>
Co-authored-by: David Barsky <me@davidbarsky.com>
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