[NO-TICKET] Tweak duration of profiler_sample_serialize benchmark #3928
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.
What does this PR do?
This PR tweaks the default duration of the
benchmarks/profiler_sample_serialize.rb
benchmark. This duration gets used when we run benchmarks on every PR.Motivation:
We've been seeing quite a bit of variance in the benchmarks from run-to-run which makes it seem like there are regressions/improvements even when nothing of consequence is touched (e.g. PR that changes docs even).
This got better when we adjusted the thresholds used by the benchmarking platform, but I'm still seeing this benchmark in particular show up quite often in a "flaky" way.
I suspect this behavior may be because each step on this benchmark can take
takesmore than one second (since it simulates 60 seconds of profiling data) and thus the low number of iterations creates more noise.I'm hoping that by raising the duration of this benchmark to 1 minute we'll see the run-to-run variation go down.
Additional Notes:
N/A
How to test the change?
Validate benchmark is running for 1 minute in CI.