Skip to content

bench(matching): zsync match-index on 100MB / 5% modified dataset (#2081) - #4243

Merged
oferchen merged 1 commit into
masterfrom
bench/zsync-medium-dataset-2081
May 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
bench/zsync-medium-dataset-2081

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds a Criterion bench (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.
  • Three cells: signature_build, target_match_scan, and full_delta_round, all using a OnceLock-cached corpus so the 100 MiB allocation does not pollute per-iteration timing.
  • In-place flip variant chosen (block alignment preserved) so the match-index probe + strong-checksum verify dominates the measurement, matching the corpus shape already used by prune_duplicate_heavy and bithash_rejection.
  • Sample size 10, 5 s measurement window - per-iteration wall clock stays well under the 5-minute ceiling on commodity hardware.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features --no-deps -- -D warnings
  • cargo bench -p matching --bench zsync_medium_dataset -- --warm-up-time 1 --measurement-time 5 --sample-size 10
  • All CI checks green (fmt+clippy, nextest stable, Windows, macOS, Linux musl)

…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
oferchen force-pushed the bench/zsync-medium-dataset-2081 branch from bc49bc6 to 24f82e4 Compare May 17, 2026 19:44
@oferchen
oferchen merged commit 75e60f7 into master May 17, 2026
@oferchen
oferchen deleted the bench/zsync-medium-dataset-2081 branch May 17, 2026 19:44
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.
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