Repository navigation
bench(matching): zsync prefilter, seq-match, prune workloads (#2063, #2067, #2071) - #4177
Merged
Merged
Conversation
…2067, #2071) Adds three Criterion harnesses under a new internal `bench-internal` feature flag that exposes the minimum surface needed to measure the zsync-inspired matching insertion points without affecting release builds: - `bithash_rejection` (#2063): measures the bithash prefilter rejection rate at 1/16/128 MiB basis sizes, on matching and random targets. Reports static utilization plus observed post-tag rejection rate. - `seq_match_redundant` (#2067): measures `generate_delta` throughput on log-file, tar-archive, and random-control corpora with a target that is basis plus a handful of small mutations, exercising the `want_i` adjacent-match hint path. - `prune_duplicate_heavy` (#2071): measures match throughput with the matched-block pruning bitmap on and off across a zero-heavy VM-disk-style basis, a repeated-blocks synthetic corpus, and a no-duplicates regression control. The new feature exposes only bench-only accessors (`bithash_utilization`, `bithash_admits`, `tag_admits`) and the prune toggle (`with_prune_matched`). It is never enabled by default, never propagated to CLI/daemon, and there is no way to turn it on from a release `oc-rsync` invocation.
oferchen
force-pushed
the
bench/zsync-prefilter-and-seqmatch-2063-2071
branch
from
May 16, 2026 20:03
99a98da to
4d32c0a
Compare
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…2067, #2071) (#4177) Adds three Criterion harnesses under a new internal `bench-internal` feature flag that exposes the minimum surface needed to measure the zsync-inspired matching insertion points without affecting release builds: - `bithash_rejection` (#2063): measures the bithash prefilter rejection rate at 1/16/128 MiB basis sizes, on matching and random targets. Reports static utilization plus observed post-tag rejection rate. - `seq_match_redundant` (#2067): measures `generate_delta` throughput on log-file, tar-archive, and random-control corpora with a target that is basis plus a handful of small mutations, exercising the `want_i` adjacent-match hint path. - `prune_duplicate_heavy` (#2071): measures match throughput with the matched-block pruning bitmap on and off across a zero-heavy VM-disk-style basis, a repeated-blocks synthetic corpus, and a no-duplicates regression control. The new feature exposes only bench-only accessors (`bithash_utilization`, `bithash_admits`, `tag_admits`) and the prune toggle (`with_prune_matched`). It is never enabled by default, never propagated to CLI/daemon, and there is no way to turn it on from a release `oc-rsync` invocation.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…2067, #2071) (#4177) Adds three Criterion harnesses under a new internal `bench-internal` feature flag that exposes the minimum surface needed to measure the zsync-inspired matching insertion points without affecting release builds: - `bithash_rejection` (#2063): measures the bithash prefilter rejection rate at 1/16/128 MiB basis sizes, on matching and random targets. Reports static utilization plus observed post-tag rejection rate. - `seq_match_redundant` (#2067): measures `generate_delta` throughput on log-file, tar-archive, and random-control corpora with a target that is basis plus a handful of small mutations, exercising the `want_i` adjacent-match hint path. - `prune_duplicate_heavy` (#2071): measures match throughput with the matched-block pruning bitmap on and off across a zero-heavy VM-disk-style basis, a repeated-blocks synthetic corpus, and a no-duplicates regression control. The new feature exposes only bench-only accessors (`bithash_utilization`, `bithash_admits`, `tag_admits`) and the prune toggle (`with_prune_matched`). It is never enabled by default, never propagated to CLI/daemon, and there is no way to turn it on from a release `oc-rsync` invocation.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…2067, #2071) (#4177) Adds three Criterion harnesses under a new internal `bench-internal` feature flag that exposes the minimum surface needed to measure the zsync-inspired matching insertion points without affecting release builds: - `bithash_rejection` (#2063): measures the bithash prefilter rejection rate at 1/16/128 MiB basis sizes, on matching and random targets. Reports static utilization plus observed post-tag rejection rate. - `seq_match_redundant` (#2067): measures `generate_delta` throughput on log-file, tar-archive, and random-control corpora with a target that is basis plus a handful of small mutations, exercising the `want_i` adjacent-match hint path. - `prune_duplicate_heavy` (#2071): measures match throughput with the matched-block pruning bitmap on and off across a zero-heavy VM-disk-style basis, a repeated-blocks synthetic corpus, and a no-duplicates regression control. The new feature exposes only bench-only accessors (`bithash_utilization`, `bithash_admits`, `tag_admits`) and the prune toggle (`with_prune_matched`). It is never enabled by default, never propagated to CLI/daemon, and there is no way to turn it on from a release `oc-rsync` invocation.
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
Adds three Criterion harnesses under a new internal
bench-internalfeature flag that exposes the minimum surface needed to measure the zsync-inspired matching insertion points without affecting release builds.crates/matching/benches/bithash_rejection.rs(Ensure identical timestamp files are compared by content #2063): measures the bithash prefilter rejection rate at 1/16/128 MiB basis sizes against matching and random targets. Reports static utilization plus observed post-tag rejection rate via the newbithash_utilization,bithash_admits, andtag_admitsaccessors.crates/matching/benches/seq_match_redundant.rs(Ensure --ignore-times forces a rewrite #2067): measuresgenerate_deltathroughput on log-file, tar-archive, and random-control corpora with a target that is basis plus a handful of small mutations, exercising thewant_iadjacent-match hint path on highly redundant data.crates/matching/benches/prune_duplicate_heavy.rs(Ensure copy skip heuristics verify file content #2071): measures match throughput with the matched-block pruning bitmap on and off across a zero-heavy VM-disk-style basis, a repeated-blocks synthetic corpus, and a no-duplicates regression control.Surface impact
The new
bench-internalfeature exposes only:DeltaSignatureIndex::bithash_utilization,bithash_admits,tag_admits(read-only accessors used by the rejection-rate harness).DeltaGenerator::with_prune_matched(mirror of the existing test-only toggle, used by the prune harness).Never enabled by default, never propagated to workspace
default-features, the CLIfeaturestable, or the daemon. There is no way to turn it on from a releaseoc-rsyncinvocation. Matches the bench scaffolding contracts indocs/design/zsync-bithash.mdsection 7 anddocs/design/zsync-prune.md.Test plan
cargo fmt --all -- --checkcargo clippy -p matching --all-targets --no-deps -- -D warningscargo clippy -p matching --all-targets --features bench-internal --no-deps -- -D warningscargo nextest run -p matching(318 pass, 3 skipped)cargo nextest run -p matching --features bench-internal(318 pass, 3 skipped)cargo check --workspace --all-featurescargo check -p matching --benches --features bench-internal