Skip to content

MOD-18184 Seed benchmark performance baselines - #1639

Merged
LiranAbir merged 1 commit into
masterfrom
MOD-18184-seed-benchmark-floors
Sep 15, 2026
Merged

LiranAbir merged 1 commit into
masterfrom
MOD-18184-seed-benchmark-floors

Conversation

@LiranAbir

@LiranAbir LiranAbir commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

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-gate branch, 3 runner groups on the usual perf EC2 setup. Floors were generated by tests/benchmarks/update_kpis.py --margin 0.05 against that run's own result artifacts — none typed by hand:

kpis:
  - ge:
      "$.Tests.Overall.rps": 92673.88

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_2

The run produced no result for it — redis-benchmark exits 1 with only a CSV header and Benchmark 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.yml had continue-on-error: true on the benchmark step, which #1638 removes. So it has been silently broken for at least five weeks.

A benchmark with no kpis block 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 $ 2 five 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:

  1. Change the command to 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.
  2. Drop the benchmark.
  3. Confirm the cause from the S3 client log first, then decide.

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. Note json_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 kpis sections to 42 benchmark YAMLs under tests/benchmarks/, each with a ge floor on measured throughput so redisbench-admin can fail runs that regress.

Most redis-benchmark specs gate on $.Tests.Overall.rps; the memtier json_recursive_descent_with_filter_uid_issue674 case 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_2 is 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.

@codecov

codecov Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.97%. Comparing base (3df7e2b) to head (93a10df).
⚠️ Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

AvivDavid23
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
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
LiranAbir force-pushed the MOD-18184-seed-benchmark-floors branch from d5cb1dd to 93a10df Compare September 15, 2026 12:35
@LiranAbir
LiranAbir merged commit a643a3d into master Sep 15, 2026
54 of 60 checks passed
@LiranAbir
LiranAbir deleted the MOD-18184-seed-benchmark-floors branch September 15, 2026 12:40
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>
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.

2 participants