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

[chore] Add benchmark for new XML crud functions #35493

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

djaglowski
Copy link
Member

@djaglowski djaglowski commented Sep 30, 2024

The benchmark performs a round trip of operations, getting values from the document, inserting them elsewhere, then removing them, and ultimately overwriting the original value with the "new" (same) value.

Resolves #35471

@djaglowski djaglowski marked this pull request as ready for review September 30, 2024 19:57
@djaglowski djaglowski requested a review from a team as a code owner September 30, 2024 19:57
Copy link
Member

@TylerHelmuth TylerHelmuth left a comment

Choose a reason for hiding this comment

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

For the record, here are the results I got when running:

/Users/tylerhelmuth/Library/Caches/JetBrains/GoLand2023.2/tmp/GoLand/___Benchmark_XML_Functions_in_github_com_open_telemetry_opentelemetry_collector_contrib_pkg_ottl_e2e.test -test.v -test.paniconexit0 -test.bench ^\QBenchmark_XML_Functions\E$ -test.run ^$
goos: darwin
goarch: arm64
pkg: github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/e2e
Benchmark_XML_Functions
Benchmark_XML_Functions-10    	   45488	     25384 ns/op	   48728 B/op	     308 allocs/op

@djaglowski djaglowski merged commit 2797fa0 into open-telemetry:main Oct 1, 2024
158 checks passed
@djaglowski djaglowski deleted the ottl-xml-crud-bench branch October 1, 2024 16:01
@github-actions github-actions bot added this to the next release milestone Oct 1, 2024
jriguera pushed a commit to springernature/opentelemetry-collector-contrib that referenced this pull request Oct 4, 2024
The benchmark performs a round trip of operations, getting values from
the document, inserting them elsewhere, then removing them, and
ultimately overwriting the original value with the "new" (same) value.

Resolves open-telemetry#35471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pkg/ottl] Create e2e XML benchmarks
3 participants