Skip to content

perf: add --checksum mode wall-clock benchmark for CSM-9 validation - #5476

Merged
oferchen merged 2 commits into
masterfrom
perf/csm-9-checksum-mode-rebench
Jun 5, 2026
Merged

oferchen merged 2 commits into
masterfrom
perf/csm-9-checksum-mode-rebench

Conversation

@oferchen

@oferchen oferchen commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a focused Criterion benchmark (checksum_mode_benchmark) to the checksums crate that measures whole-file hash throughput for XXH3/128 vs MD5
  • Validates the CSM-8 fix (PR perf: default local-copy --checksum to XXH3/128 matching upstream rsync 3.4.1 (CSM-8) #5128) brought --checksum mode performance within the 1.05x upstream target
  • Covers four measurement tiers: pure hash throughput (4KB-100MB), file-backed I/O (1MB-100MB), parallel multi-file hashing (100x1MB via rayon), and streaming overhead-per-byte with 64KB chunks

Closes #2772

Test plan

  • CI passes (fmt, clippy, nextest, all platform matrices)
  • Run cargo bench -p checksums --bench checksum_mode_benchmark to confirm XXH3/128 throughput exceeds MD5 by 10-30x across all file sizes
  • Verify the checksum_mode_file_hash group shows XXH3/128 file hashing matches or beats MD5 even with I/O included
  • Confirm parallel hashing tier shows rayon-accelerated XXH3/128 throughput at scale

oferchen added 2 commits June 5, 2026 06:30
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
oferchen force-pushed the perf/csm-9-checksum-mode-rebench branch from c484719 to 497bc6f Compare June 5, 2026 03:31
@oferchen
oferchen merged commit 20b0194 into master Jun 5, 2026
10 of 11 checks passed
@oferchen
oferchen deleted the perf/csm-9-checksum-mode-rebench branch June 5, 2026 19:28
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Daemon on Windows?

1 participant