Skip to content

chore(metrics): add benchmark for metrics#2106

Open
xuan-cao-swi wants to merge 3 commits intoopen-telemetry:mainfrom
xuan-cao-swi:metrics_sdk_benchmark
Open

chore(metrics): add benchmark for metrics#2106
xuan-cao-swi wants to merge 3 commits intoopen-telemetry:mainfrom
xuan-cao-swi:metrics_sdk_benchmark

Conversation

@xuan-cao-swi
Copy link
Copy Markdown
Contributor

Description

Inspired by api/benchmarks, and use native benchmark-ips instead of benchmark-ipsa

@xuan-cao-swi xuan-cao-swi changed the title chore(metrics_sdk): add benchmark for metrics chore(metrics): add benchmark for metrics Apr 22, 2026
spec.add_dependency 'opentelemetry-api', '~> 1.0'

spec.add_development_dependency 'benchmark-ipsa', '~> 0.2.0'
spec.add_development_dependency 'benchmark-ips', '~> 2.14.0'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this not be added to the gemfile instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I am ok with either put here or in gemfile

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why would it move to the Gemfile?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Because currently we are needing to disable the rubocop cop so it doesn't fail, it would increase consistency with contrib & renovate natively updates it etc.

Comment thread metrics_api/benchmarks/README.md
Comment thread metrics_api/benchmarks/bench_helper.rb Outdated
Comment thread metrics_api/benchmarks/exemplar_filter_bench.rb Outdated
Comment thread metrics_api/benchmarks/README.md Outdated
Comment thread metrics_api/benchmarks/exemplar_reservoir_bench.rb
Copy link
Copy Markdown
Member

@robbkidd robbkidd left a comment

Choose a reason for hiding this comment

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

Benching

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