Skip to content

bench(engine): parallel-receive-delta perf for default-on decision (#1368 followup) - #4330

Merged
oferchen merged 1 commit into
masterfrom
bench/parallel-receive-delta-default-on
May 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
bench/parallel-receive-delta-default-on

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds crates/engine/benches/parallel_receive_delta_perf.rs, a criterion bench that drives ParallelDeltaApplier against a sequential baseline across three workload classes (small_files, mixed, large_files) so the default-on decision for --features parallel-receive-delta (PR feat(engine): SpillableReorderBuffer wiring + parallel receive delta apply (#1884, #1368) #4319 scaffold) has measured evidence rather than a coin flip.
  • Adds docs/design/parallel-receive-delta-default-on.md, the promotion design doc with five gating criteria (>= 10% wall-clock win on small_files, zero wire-format divergence, no single-workload regression > 5%, one release cycle of opt-in soak, two consecutive green nightly runs), three promotion paths (Cargo default flip, runtime auto-detect, per-workload CLI flag), and a five-step rollout keyed to Path B.
  • Registers the bench under [[bench]] with required-features = ["parallel-receive-delta"] so the default cargo bench -p engine still compiles.

Test plan

  • cargo bench -p engine --features parallel-receive-delta --bench parallel_receive_delta_perf runs all three workload classes locally and prints sequential vs parallel cells.
  • cargo check -p engine --benches passes without the feature (bench is #[cfg] gated, so it compiles away cleanly).
  • cargo check -p engine --features parallel-receive-delta --benches passes (verified locally before push).
  • CI fmt+clippy stays green.
  • First CI bench run populates the placeholder table in section 4 of the design doc; the recommendation in section 7 picks Path A or Path B based on the actual numbers.

Add criterion bench and design doc to inform the default-on decision for
the parallel-receive-delta feature (#1368 followup, PR #4319 scaffold).

The bench drives ParallelDeltaApplier vs a sequential baseline across
three workload classes: small_files (10000 x 4 KiB, 50/50 delta/whole),
mixed (1000 files, 4 KiB - 4 MiB, 50/50), and large_files (10 x 256 MiB,
all delta). Both cells write to in-memory sinks so the comparison
isolates apply-loop scheduling cost from disk I/O.

The doc lays out five promotion criteria (small_files >= 10% wall-clock
win at 4+ threads, zero wire-format divergence, no single-workload
regression > 5%, one release cycle of opt-in soak, two consecutive
nightly green runs) and three promotion paths (default-features flip,
runtime auto-detect on file_count/total_size, per-workload CLI flag),
with Path B as the recommended default unless the bench shows parallel
wins universally.
@oferchen
oferchen merged commit 2c2f982 into master May 17, 2026
13 of 24 checks passed
@oferchen
oferchen deleted the bench/parallel-receive-delta-default-on branch May 17, 2026 22:20
oferchen added a commit that referenced this pull request May 18, 2026
Add criterion bench and design doc to inform the default-on decision for
the parallel-receive-delta feature (#1368 followup, PR #4319 scaffold).

The bench drives ParallelDeltaApplier vs a sequential baseline across
three workload classes: small_files (10000 x 4 KiB, 50/50 delta/whole),
mixed (1000 files, 4 KiB - 4 MiB, 50/50), and large_files (10 x 256 MiB,
all delta). Both cells write to in-memory sinks so the comparison
isolates apply-loop scheduling cost from disk I/O.

The doc lays out five promotion criteria (small_files >= 10% wall-clock
win at 4+ threads, zero wire-format divergence, no single-workload
regression > 5%, one release cycle of opt-in soak, two consecutive
nightly green runs) and three promotion paths (default-features flip,
runtime auto-detect on file_count/total_size, per-workload CLI flag),
with Path B as the recommended default unless the bench shows parallel
wins universally.
oferchen added a commit that referenced this pull request May 18, 2026
Add criterion bench and design doc to inform the default-on decision for
the parallel-receive-delta feature (#1368 followup, PR #4319 scaffold).

The bench drives ParallelDeltaApplier vs a sequential baseline across
three workload classes: small_files (10000 x 4 KiB, 50/50 delta/whole),
mixed (1000 files, 4 KiB - 4 MiB, 50/50), and large_files (10 x 256 MiB,
all delta). Both cells write to in-memory sinks so the comparison
isolates apply-loop scheduling cost from disk I/O.

The doc lays out five promotion criteria (small_files >= 10% wall-clock
win at 4+ threads, zero wire-format divergence, no single-workload
regression > 5%, one release cycle of opt-in soak, two consecutive
nightly green runs) and three promotion paths (default-features flip,
runtime auto-detect on file_count/total_size, per-workload CLI flag),
with Path B as the recommended default unless the bench shows parallel
wins universally.
oferchen added a commit that referenced this pull request Aug 24, 2026
Add criterion bench and design doc to inform the default-on decision for
the parallel-receive-delta feature (#1368 followup, PR #4319 scaffold).

The bench drives ParallelDeltaApplier vs a sequential baseline across
three workload classes: small_files (10000 x 4 KiB, 50/50 delta/whole),
mixed (1000 files, 4 KiB - 4 MiB, 50/50), and large_files (10 x 256 MiB,
all delta). Both cells write to in-memory sinks so the comparison
isolates apply-loop scheduling cost from disk I/O.

The doc lays out five promotion criteria (small_files >= 10% wall-clock
win at 4+ threads, zero wire-format divergence, no single-workload
regression > 5%, one release cycle of opt-in soak, two consecutive
nightly green runs) and three promotion paths (default-features flip,
runtime auto-detect on file_count/total_size, per-workload CLI flag),
with Path B as the recommended default unless the bench shows parallel
wins universally.
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