Repository navigation
MOD-18184 Seed benchmark performance baselines - #1639
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1639 +/- ##
=======================================
Coverage 85.97% 85.97%
=======================================
Files 15 15
Lines 5306 5306
=======================================
Hits 4562 4562
Misses 744 744 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
AvivDavid23
previously approved these changes
Sep 15, 2026
Base automatically changed from
MOD-18184-benchmark-baseline-gate
to
master
September 15, 2026 12:33
LiranAbir
dismissed
AvivDavid23’s stale review
September 15, 2026 12:33
The base branch was changed.
Seeds the `kpis` floor for 42 of the 43 benchmarks from run 34947609292 on
the MOD-18184-benchmark-baseline-gate branch, at 5% below each measured value:
kpis:
- ge:
"$.Tests.Overall.rps": 92673.88
Generated with tests/benchmarks/update_kpis.py --margin 0.05 against that
run's own result artifacts, not by hand.
json_nummultby_num_2 gets no floor because the run produced no result for it:
redis-benchmark exits 1 there with only a CSV header and a zero second
duration. That is not new -- the same test fails the same way in the master
runs of 2026-08-09, 08-23 and 08-25, which were reported green only because
benchmark-flow.yml swallowed the exit code. A benchmark with no `kpis` block
is simply not gated, so this leaves the remaining 42 baselines usable while
that failure is investigated separately.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
LiranAbir
force-pushed
the
MOD-18184-seed-benchmark-floors
branch
from
September 15, 2026 12:35
d5cb1dd to
93a10df
Compare
AvivDavid23
approved these changes
Sep 15, 2026
LiranAbir
added a commit
that referenced
this pull request
Sep 17, 2026
The floors seeded in #1639 were derived from a single benchmark run with a 5% margin. Run-to-run variance on this suite reaches 19%, so 37 of 41 floors sit above what the scheduled nightly actually achieves, and the benchmark job has failed every night since gating landed. Re-seed the 37 unreachable floors from the two most recent scheduled nightly runs (2026-09-15 run 35019772840, 2026-09-16 run 35146837307, both on a643a3d), using min(both nights) * 0.90 — 10% under the worse of two observed runs rather than 5% under a single best-case one. Leaves the 4 floors that these runs exceeded untouched: raising a floor on two samples adds breach risk without fixing anything today. This is a correction of an unsound seeding method, not an accepted performance drop — no product code changed between the last green benchmark run (1c74f65) and the first red one, and the two red nights ran the same commit with per-benchmark deltas varying by up to 6 percentage points. Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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.
Stacked on #1638 — merge that first. Reviewing this separately keeps the 42 measured numbers apart from the mechanism that reads them.
Where the numbers come from
Run 34947609292 on the
MOD-18184-benchmark-baseline-gatebranch, 3 runner groups on the usual perf EC2 setup. Floors were generated bytests/benchmarks/update_kpis.py --margin 0.05against that run's own result artifacts — none typed by hand:42 of 43 benchmarks got a floor, each 5% below its measured throughput. Verified afterwards that all 42 gate correctly through redisbench-admin's own
results_dict_kpi_check: a run 1% above the floor returns 0, a run 10% below returns 1.One benchmark has no floor:
json_nummultby_num_2The run produced no result for it —
redis-benchmarkexits 1 with only a CSV header andBenchmark duration 0 secs.This is not new and not caused by this work. The same test fails identically in the master runs of 2026-08-09, 08-23 and 08-25. Those runs were reported green only because
benchmark-flow.ymlhadcontinue-on-error: trueon the benchmark step, which #1638 removes. So it has been silently broken for at least five weeks.A benchmark with no
kpisblock is simply not gated, so this PR leaves the other 42 baselines fully usable.But it does block the gate from being useful, and that needs a decision before #1638's nightly job is relied on: as long as this one test fails, the benchmark job is red on every run, so a real regression elsewhere is indistinguishable from the standing failure.
Plausible mechanism, not yet confirmed: the test runs
JSON.NUMMULTBY num $ 2five million times against one key, so the value doubles past the f64 range within the first ~1100 requests and every later call errors.json_numincrby_num_1(+1 each time) never overflows, which fits — it is the only other num benchmark and it passes. I have not read the client log from S3 to confirm.Options, in increasing cost:
JSON.NUMMULTBY num $ 1— exercises the same code path without overflowing. Cheapest, but changes what the test measures, so its historical Grafana series is no longer comparable.I have not applied any of these — picking one is a call for whoever owns these benchmarks.
Margin
5% is a starting point borrowed from
redisbench-admin compare's own regression waterline, not a measured value. Worth revisiting against the real run-to-run spread on the CI benchmarks dashboard once a few runs have gated. Notejson_set_fulldoc_api_replies_q5_gmaps_place(2261 rps) and the memtier case (149 ops/sec) are low-throughput and may well be noisier in relative terms than the ~100k rps cases.🤖 Generated with Claude Code
Note
Low Risk
Benchmark config-only changes; no production or RedisJSON runtime code paths are modified.
Overview
Adds
kpissections to 42 benchmark YAMLs undertests/benchmarks/, each with agefloor on measured throughput soredisbench-admincan fail runs that regress.Most
redis-benchmarkspecs gate on$.Tests.Overall.rps; the memtierjson_recursive_descent_with_filter_uid_issue674case gates on$."ALL STATS".Totals."Ops/sec". Thresholds match a reference CI run at roughly 5% below measured RPS (per PR notes /update_kpis.py --margin 0.05).Benchmark commands, datasets, and client parameters are unchanged—only baseline enforcement is added.
json_nummultby_num_2is not in this diff (no floor), so it remains ungated while that benchmark still fails to produce results.Reviewed by Cursor Bugbot for commit 93a10df. Bugbot is set up for automated code reviews on this repo. Configure here.