Repository navigation
perf: add --checksum mode wall-clock benchmark for CSM-9 validation - #5476
Merged
Merged
Conversation
Adds a Criterion benchmark (checksum_mode_benchmark) that measures whole-file hash throughput for XXH3/128 vs MD5 across four tiers: 1. Pure hash throughput at 4KB-100MB to isolate CPU cost 2. File-backed hashing with real I/O at 1MB-100MB 3. Parallel multi-file hashing (100x1MB via rayon) 4. Streaming overhead-per-byte with 64KB chunks This validates that the CSM-8 algorithm switch from MD5 to XXH3/128 brought --checksum mode performance within the 1.05x upstream target.
oferchen
force-pushed
the
perf/csm-9-checksum-mode-rebench
branch
from
June 5, 2026 03:31
c484719 to
497bc6f
Compare
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…5476) * perf: add --checksum mode wall-clock benchmark for CSM-9 validation Adds a Criterion benchmark (checksum_mode_benchmark) that measures whole-file hash throughput for XXH3/128 vs MD5 across four tiers: 1. Pure hash throughput at 4KB-100MB to isolate CPU cost 2. File-backed hashing with real I/O at 1MB-100MB 3. Parallel multi-file hashing (100x1MB via rayon) 4. Streaming overhead-per-byte with 64KB chunks This validates that the CSM-8 algorithm switch from MD5 to XXH3/128 brought --checksum mode performance within the 1.05x upstream target. * style: apply cargo fmt formatting
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
checksum_mode_benchmark) to thechecksumscrate that measures whole-file hash throughput for XXH3/128 vs MD5--checksummode performance within the 1.05x upstream targetCloses #2772
Test plan
cargo bench -p checksums --bench checksum_mode_benchmarkto confirm XXH3/128 throughput exceeds MD5 by 10-30x across all file sizeschecksum_mode_file_hashgroup shows XXH3/128 file hashing matches or beats MD5 even with I/O included