E544 trace: Use non-generic to replace newEvictedQueue in trace.start to reduce memory usage. by tttoad · Pull Request #5497 · open-telemetry/opentelemetry-go · GitHub
[go: up one dir, main page]

Skip to content

Conversation

tttoad
Copy link
Contributor
@tttoad tttoad commented Jun 6, 2024

benchstat:

goos: darwin
goarch: arm64
pkg: go.opentelemetry.io/otel/sdk/trace
              │     old     │                 new                 │
              │   sec/op    │   sec/op     vs base                │
TraceStart-10   950.6n ± 1%   641.0n ± 0%  -32.57% (p=0.000 n=10)

              │     old     │                new                 │
              │    B/op     │    B/op     vs base                │
TraceStart-10   1040.0 ± 0%   704.0 ± 0%  -32.31% (p=0.000 n=10)

              │    old     │                new                 │
              │ allocs/op  │ allocs/op   vs base                │
TraceStart-10   20.00 ± 0%   14.00 ± 0%  -30.00% (p=0.000 n=10)

Copy link
codecov bot commented Jun 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.8%. Comparing base (d3f3ae1) to head (2919062).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #5497   +/-   ##
=====================================
  Coverage   84.7%   84.8%           
=====================================
  Files        269     269           
  Lines      18077   18079    +2     
=====================================
+ Hits       15329   15332    +3     
+ Misses      2422    2421    -1     
  Partials     326     326           
Files Coverage Δ
sdk/trace/evictedqueue.go 100.0% <100.0%> (ø)
sdk/trace/tracer.go 100.0% <100.0%> (ø)

... and 2 files with indirect coverage changes

@tttoad tttoad force-pushed the perf-trace-start branch 2 times, most recently from 1549d10 to 29512b5 Compare June 10, 2024 20:14
@tttoad tttoad force-pushed the perf-trace-start branch from 29512b5 to 59e5a08 Compare June 10, 2024 20:17
@MrAlias MrAlias merged commit 30e82e0 into open-telemetry:main Jun 17, 2024
@MrAlias MrAlias added this to the v1.28.0 milestone Jun 20, 2024
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.

4 participants
0