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

Change exemplars to slice of values instead of ptrs #2402

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

bogdandrutu
Copy link
Member

Benchmarks before:

goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/consumer/pdata
BenchmarkMetricsFromOtlp
BenchmarkMetricsFromOtlp-16    	     322	   3809358 ns/op	 2271080 B/op	   51507 allocs/op
PASS

Benchmarks after

goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/consumer/pdata
BenchmarkMetricsFromOtlp
BenchmarkMetricsFromOtlp-16    	     331	   3594315 ns/op	 3212271 B/op	   34700 allocs/op
PASS

Significant improvement in the number of allocations. Increase in the number of total bytes allocated.

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com

@bogdandrutu bogdandrutu requested a review from a team January 25, 2021 18:20
@codecov
Copy link

codecov bot commented Jan 25, 2021

Codecov Report

Merging #2402 (1fd889f) into main (e12dee4) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2402      +/-   ##
==========================================
- Coverage   91.89%   91.89%   -0.01%     
==========================================
  Files         268      268              
  Lines       15212    15204       -8     
==========================================
- Hits        13979    13971       -8     
  Misses        856      856              
  Partials      377      377              
Impacted Files Coverage Δ
consumer/pdata/generated_metrics.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e12dee4...1fd889f. Read the comment docs.

Base automatically changed from master to main January 28, 2021 18:06
Benchmarks before:
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/consumer/pdata
BenchmarkMetricsFromOtlp
BenchmarkMetricsFromOtlp-16    	     322	   3809358 ns/op	 2271080 B/op	   51507 allocs/op
PASS
```

Benchmarks after
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/consumer/pdata
BenchmarkMetricsFromOtlp
BenchmarkMetricsFromOtlp-16    	     331	   3594315 ns/op	 3212271 B/op	   34700 allocs/op
PASS
```

Significant improvement in the number of allocations. Increase in the number of total bytes allocated.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@tigrannajaryan tigrannajaryan merged commit 522fba3 into open-telemetry:main Feb 3, 2021
@bogdandrutu bogdandrutu deleted the exemplarsnotnil branch February 3, 2021 21:34
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.

2 participants