Repository navigation
id: implement the per-interface benchmark matrix (#5896) - #10507
Conversation
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.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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 versionedresults.jsonlbundle: 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 asunsupportedwith a reason — never omitted, never zero. Measured cells carry metric entries with statistic, unit, value, sample_count and raw samples. Legacybenchlines /baseline.txtremain 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.jsonlinputs: 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 bundleci-runner+ the run commit, uploadsresults.jsonlwith the raw output in thebench-outputartifact, 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 thebaseline.jsonlre-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_fsyncrun emits a well-formed bundle (manifest + measured cell + 3 unsupported transport cells); its median (5144 µs) is in line with the committedbaseline.txtmedian (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.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.