Skip to content

id: implement the per-interface benchmark matrix (#5896) - #10507

Merged
dezren39 merged 2 commits into
mainfrom
queue/12924-5896-bench-matrix
Nov 15, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/12924-5896-bench-matrix

Conversation

@dezren39

@dezren39 dezren39 commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Implements the per-interface benchmark matrix per the decision record posted on #5896 (task 10503), now that its prerequisites have landed: the #5891 loadgen core (#8307, PR #10067 merged 2026-11-14) and the #5894 standard server baseline (fleet-laptop / ci-runner machine classes, standard-default configuration, scales S0/S1/S2).

What changes

  • pkgs/id/benches/world_bench.rs — the four loadgen-core workloads (journal_append_fsync, checkpoint_compaction, guest_replay, session_fanout) also emit a versioned results.jsonl bundle: a run manifest (schema_version, run_id, git_sha, started_at_utc, machine_class, OS/arch, CPU threads, toolchain, build profile, generator version, seed) plus one cell record per (workload × interface × configuration) tuple. Measured interface: in_process. The shell-contract transports (iroh, websocket, ssh-exec) have no adapter in this harness, so their cells are recorded explicitly as unsupported with a reason — never omitted, never zero. Measured cells carry metric entries with statistic, unit, value, sample_count and raw samples. Legacy bench lines / baseline.txt remain the compatibility view. The async workloads (many_worlds, fuel_spin_isolation) are not matrix cells yet (their pacing is the loadgen record's later executor steps) and keep their legacy lines.
  • .github/scripts/id-bench-compare.sh — matrix mode for .jsonl inputs: compares by the full identity (machine_class, workload_id, interface_id, configuration_id, metric, statistic); same-name cells on different interfaces can no longer collide; machine-class mismatches are incomparable, never compared; explicit non-measured statuses are reported as-is. Legacy mode unchanged.
  • .github/workflows/id-bench.yml — stamps the bundle ci-runner + the run commit, uploads results.jsonl with the raw output in the bench-output artifact, and links the bundle from the job summary (an index, not the record).
  • pkgs/id/benches/BASELINES.md — documents the bundle, the identity, the machine classes, and the baseline.jsonl re-baseline procedure.
  • pkgs/id/benches/baseline.jsonl — the committed fleet-laptop matrix baseline from a full-size run on the reference machine (added in a follow-up commit on this branch once the run completes; manifest carries its run id and commit).

Tests

  • id-bench-compare.test.sh: all pass, including new matrix cases (interface-identity regression, machine-class mismatch incomparable with no percent, unsupported status reported instead of "not run").
  • cargo bench --bench world_bench --no-run (bench profile) builds clean of new warnings.
  • --quick --only journal_append_fsync run emits a well-formed bundle (manifest + measured cell + 3 unsupported transport cells); its median (5144 µs) is in line with the committed baseline.txt median (5180 µs).

Queue task 12924 (repo-health-code-pilot), lane code-a. Refs #5896 — the issue stays open until this merges; this PR does not close it automatically because the baseline commit lands on this branch after the full reference run.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Implements the #5896 decision record (task 10503) on top of the
landed prerequisites: the #5891 loadgen core (#8307, PR #10067) and
the #5894 standard server baseline (fleet-laptop / ci-runner machine
classes, standard-default configuration, scales S0/S1/S2).

- world_bench: the four loadgen-core workloads now also emit a
  versioned results.jsonl bundle — a run manifest (schema_version,
  run_id, git sha, started_at_utc, machine_class, OS/arch, CPU,
  toolchain, build profile, generator version, seed) plus one cell
  record per (workload x interface x configuration) tuple. The
  measured interface is in_process; the shell-contract transports
  (iroh, websocket, ssh-exec) have no adapter in this harness, so
  their cells are recorded explicitly as unsupported with a reason —
  never omitted, never zero. Measured cells carry metric entries
  with statistic, unit, value, sample_count and raw samples. The
  legacy bench lines / baseline.txt remain the compatibility view.
- id-bench-compare.sh: matrix mode for .jsonl inputs compares by
  the full identity (machine_class, workload_id, interface_id,
  configuration_id, metric, statistic) — same-name cells on
  different interfaces can no longer collide; a machine-class
  mismatch is incomparable, never compared; explicit non-measured
  statuses are reported as-is. Legacy mode unchanged; tests cover
  both (all pass).
- id-bench.yml: stamps the bundle ci-runner + the run commit,
  uploads results.jsonl with the raw output in the bench-output
  artifact, and links the bundle from the job summary (index, not
  the record).
- BASELINES.md: documents the bundle, the identity, the machine
  classes, and the re-baseline procedure for baseline.jsonl.

Verified: cargo bench build (bench profile) succeeds; a --quick
run of journal_append_fsync emits a well-formed bundle (manifest +
measured cell + 3 unsupported transport cells) and its median
(5144us) is in line with the committed baseline (5180us).

Task 12924 (queue repo-health-code-pilot), lane code-a.
@dezren39
dezren39 requested a review from a team as a code owner November 15, 2026 13:00
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T13:05:44.588122Z
We couldn’t complete this review. Comment @codex review to try again.
1298242 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

baseline.jsonl generated by a full-size world_bench run on the
fleet reference laptop at 9bcd1a7 (manifest inside the bundle
carries run_id, commit, machine class fleet-laptop, rustc 1.99.0):
4 measured in_process cells + 12 explicitly unsupported transport
cells. Self-comparison with id-bench-compare.sh matrix mode reports
every measured metric ok at +0.0%.

Note: the matrix guest_replay median (1.284 us_per_event) differs
from the legacy baseline.txt line (0.170) — the #8307 loadgen
re-expression changed that workload's shape after baseline.txt was
taken (2026-10-30); the matrix baseline records the current
harness's numbers, and baseline.txt is untouched by this change.
@dezren39

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit b51e88c into main Nov 15, 2026
1 check failed
@dezren39
dezren39 deleted the queue/12924-5896-bench-matrix branch November 15, 2026 13:06
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.

1 participant