Repository navigation
RUBY-3952 Benchmark OpenTelemetry configurations with DriverBench - #3121
Merged
comandeo-mongo merged 3 commits intoOct 29, 2026
Merged
Conversation
The OpenTelemetry spec requires drivers to benchmark their tracing in four configurations (off, api-only, sdk-ratio, sdk-always) with the standard DriverBench infrastructure, and to record each one's overhead over the untraced baseline as a metric of its own. driver_bench:run now runs under the configuration named by DRIVER_BENCH_CONFIGURATION and can be narrowed with DRIVER_BENCH_TASKS. driver_bench:compare runs each configuration in its own process, interleaved and rotated across repetitions, and reports throughput loss, CPU time and allocations per operation relative to off. Results for other configurations are reported under "<task> [<configuration>]" so that the baseline series is unchanged.
Runs Small doc insertOne and Find one by ID under every configuration on one host with YJIT, and sends the overheads to the performance store.
Per-operation metrics are now reported only when the comparison asks for them, so the daily driver-bench task sends the same metrics to the performance store as before. Also correct the YJIT comment and restore the note on why the task needs AWS credentials.
jamis
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the OpenTelemetry benchmark the spec now asks for (mongodb/specifications#1986).
rake driver_bench:compareruns Small doc insertOne and Find one by ID with tracing off, API only, SDK with 1% sampling and SDK with everything sampled, and reports each one's overhead against off. A new daily Evergreen task runs it with YJIT. The existing driver-bench task is unchanged.Jira: https://jira.mongodb.org/browse/RUBY-3952