Repository navigation
bench(engine): SpillPolicy compression/granularity perf (#2349) - #4382
Merged
Merged
Conversation
oferchen
force-pushed
the
bench/spill-policy-perf
branch
from
May 18, 2026 00:12
fab24a7 to
ff3426f
Compare
Add a criterion benchmark that sweeps the four SpillPolicy cells (compression None vs Zstd-3, granularity WholeBatch vs PerItem) against a forced-spill workload of 1000 mixed DeltaResult payloads, plus a real SpillableReorderBuffer baseline with a 16 KiB threshold. Each cell prints its simulated bytes-on-disk alongside the criterion timing so default tuning has a side-by-side wall-clock + space view. The bench is cfg(unix) and gated behind the existing spill-compression feature, so default builds stay free of the zstd dev dependency.
oferchen
force-pushed
the
bench/spill-policy-perf
branch
from
May 18, 2026 00:57
ff3426f to
b812daa
Compare
oferchen
added a commit
that referenced
this pull request
May 18, 2026
* bench(engine): SpillPolicy compression/granularity perf (#2349) Add a criterion benchmark that sweeps the four SpillPolicy cells (compression None vs Zstd-3, granularity WholeBatch vs PerItem) against a forced-spill workload of 1000 mixed DeltaResult payloads, plus a real SpillableReorderBuffer baseline with a 16 KiB threshold. Each cell prints its simulated bytes-on-disk alongside the criterion timing so default tuning has a side-by-side wall-clock + space view. The bench is cfg(unix) and gated behind the existing spill-compression feature, so default builds stay free of the zstd dev dependency. * chore: refresh Cargo.lock
oferchen
added a commit
that referenced
this pull request
May 18, 2026
* bench(engine): SpillPolicy compression/granularity perf (#2349) Add a criterion benchmark that sweeps the four SpillPolicy cells (compression None vs Zstd-3, granularity WholeBatch vs PerItem) against a forced-spill workload of 1000 mixed DeltaResult payloads, plus a real SpillableReorderBuffer baseline with a 16 KiB threshold. Each cell prints its simulated bytes-on-disk alongside the criterion timing so default tuning has a side-by-side wall-clock + space view. The bench is cfg(unix) and gated behind the existing spill-compression feature, so default builds stay free of the zstd dev dependency. * chore: refresh Cargo.lock
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
* bench(engine): SpillPolicy compression/granularity perf (#2349) Add a criterion benchmark that sweeps the four SpillPolicy cells (compression None vs Zstd-3, granularity WholeBatch vs PerItem) against a forced-spill workload of 1000 mixed DeltaResult payloads, plus a real SpillableReorderBuffer baseline with a 16 KiB threshold. Each cell prints its simulated bytes-on-disk alongside the criterion timing so default tuning has a side-by-side wall-clock + space view. The bench is cfg(unix) and gated behind the existing spill-compression feature, so default builds stay free of the zstd dev dependency. * chore: refresh Cargo.lock
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.
Summary
crates/engine/benches/spill_policy_perf.rs, a criterion bench that sweeps the fourSpillPolicycells - compression (NonevsZstd { level: 3 }) crossed with granularity (WholeBatchvsPerItem) - over a forced-spill workload of 1000 mixedDeltaResultpayloads.DeltaResult'sSpillCodec, optionally zstd-compresses, and writes to an in-memoryCursor; the bench prints simulated bytes-on-disk alongside the criterion wall-clock so the space/time tradeoff is visible per cell.real_buffer/baselinearm drives the same workload through a liveSpillableReorderBuffer::new(256, 16 KiB)so the simulated cells can be read relative to the production code path (current default:WholeBatch+None).#![cfg(unix)], registered withrequired-features = ["spill-compression"], and pulls inzstd = "0.13"as a unix-only dev dependency so default builds remain unchanged.Test plan
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features --no-deps -- -D warningscargo bench -p engine --features spill-compression --bench spill_policy_perf -- --quickon a unix hostbytes_on_disklog line is emitted for all four cells before the criterion samples