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

Add benchmark for logger #5101

Merged
merged 6 commits into from
Mar 26, 2024
Merged

Conversation

XSAM
Copy link
Member

@XSAM XSAM commented Mar 25, 2024

Towards #5054

part of #5082

$ benchstat /tmp/old.txt
goos: darwin
goarch: arm64
pkg: go.opentelemetry.io/otel/sdk/log
                                 │ /tmp/old.txt │
                                 │    sec/op    │
LoggerNewRecord/5_attributes-10     12.18n ± 2%
LoggerNewRecord/10_attributes-10    234.7n ± 1%
geomean                             82.95n

                                 │ /tmp/old.txt │
                                 │     B/op     │
LoggerNewRecord/5_attributes-10    0.000 ± 0%
LoggerNewRecord/10_attributes-10   608.0 ± 0%
geomean                                       ¹
¹ summaries must be >0 to compute geomean

                                 │ /tmp/old.txt │
                                 │  allocs/op   │
LoggerNewRecord/5_attributes-10    0.000 ± 0%
LoggerNewRecord/10_attributes-10   4.000 ± 0%

sdk/log/logger_test.go Outdated Show resolved Hide resolved
@XSAM XSAM added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Mar 25, 2024
Copy link
Contributor

@MrAlias MrAlias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the benchmark results using benchstat to the PR description?

sdk/log/logger_test.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.8%. Comparing base (6033938) to head (7db60a1).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #5101   +/-   ##
=====================================
  Coverage   83.8%   83.8%           
=====================================
  Files        248     248           
  Lines      16201   16201           
=====================================
+ Hits       13579   13581    +2     
+ Misses      2334    2332    -2     
  Partials     288     288           

see 1 file with indirect coverage changes

@pellared pellared merged commit f1ba32e into open-telemetry:main Mar 26, 2024
27 checks passed
@XSAM XSAM deleted the logger-performance-testing branch March 26, 2024 17:29
@MrAlias MrAlias added this to the v1.25.0 milestone Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants