Repository navigation
bench(matching): zsync match-index on 100MB / 5% modified dataset (#2081) - #4243
Merged
Merged
Conversation
…2081) Add a Criterion bench that exercises the rolling-hash + strong-checksum match-index path on a medium 100 MiB corpus with ~5% of bytes flipped at deterministic offsets. Three cells cover the basis signature build, the target match scan against a pre-built index, and the full end-to-end delta-emission round. The corpus uses an in-place flip variant (block alignment preserved) so the match-index path itself dominates the measurement, mirroring the corpus style already used by prune_duplicate_heavy and bithash_rejection. Sample size is held to 10 with a 5 s measurement window to stay well under the 5-minute-per-iteration ceiling on commodity hardware.
oferchen
force-pushed
the
bench/zsync-medium-dataset-2081
branch
from
May 17, 2026 19:44
bc49bc6 to
24f82e4
Compare
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…2081) (#4243) Add a Criterion bench that exercises the rolling-hash + strong-checksum match-index path on a medium 100 MiB corpus with ~5% of bytes flipped at deterministic offsets. Three cells cover the basis signature build, the target match scan against a pre-built index, and the full end-to-end delta-emission round. The corpus uses an in-place flip variant (block alignment preserved) so the match-index path itself dominates the measurement, mirroring the corpus style already used by prune_duplicate_heavy and bithash_rejection. Sample size is held to 10 with a 5 s measurement window to stay well under the 5-minute-per-iteration ceiling on commodity hardware.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…2081) (#4243) Add a Criterion bench that exercises the rolling-hash + strong-checksum match-index path on a medium 100 MiB corpus with ~5% of bytes flipped at deterministic offsets. Three cells cover the basis signature build, the target match scan against a pre-built index, and the full end-to-end delta-emission round. The corpus uses an in-place flip variant (block alignment preserved) so the match-index path itself dominates the measurement, mirroring the corpus style already used by prune_duplicate_heavy and bithash_rejection. Sample size is held to 10 with a 5 s measurement window to stay well under the 5-minute-per-iteration ceiling on commodity hardware.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…2081) (#4243) Add a Criterion bench that exercises the rolling-hash + strong-checksum match-index path on a medium 100 MiB corpus with ~5% of bytes flipped at deterministic offsets. Three cells cover the basis signature build, the target match scan against a pre-built index, and the full end-to-end delta-emission round. The corpus uses an in-place flip variant (block alignment preserved) so the match-index path itself dominates the measurement, mirroring the corpus style already used by prune_duplicate_heavy and bithash_rejection. Sample size is held to 10 with a 5 s measurement window to stay well under the 5-minute-per-iteration ceiling on commodity hardware.
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
zsync_medium_dataset) exercising the rolling-hash + strong-checksum match-index path on a 100 MiB basis with ~5% of bytes flipped at deterministic offsets.signature_build,target_match_scan, andfull_delta_round, all using aOnceLock-cached corpus so the 100 MiB allocation does not pollute per-iteration timing.prune_duplicate_heavyandbithash_rejection.Test plan
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features --no-deps -- -D warningscargo bench -p matching --bench zsync_medium_dataset -- --warm-up-time 1 --measurement-time 5 --sample-size 10