Skip to content

perf: add criterion benchmark suite for delta transfer path - #3014

Merged
oferchen merged 1 commit into
masterfrom
perf/delta-transfer-benchmarks
Mar 23, 2026
Merged

oferchen merged 1 commit into
masterfrom
perf/delta-transfer-benchmarks

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Rewrite crates/engine/benches/delta_transfer_benchmark.rs with structured parametric benchmarks covering the full delta transfer pipeline
  • Signature generation: Benchmarks MD4 and XXH3 block signature generation for 1KB, 64KB, 1MB, and 16MB files
  • Delta computation: Measures delta generation at 90%, 50%, and 0% file similarity across all four file sizes
  • Delta application: Times applying pre-computed delta scripts to reconstruct target files at every size x similarity combination
  • End-to-end pipeline: Full signature -> index -> delta -> apply cycle for all parameter combinations
  • Uses BenchmarkGroup with BenchmarkId::new for parametric benchmarks with Throughput::Bytes

Test plan

  • CI passes (fmt, clippy, nextest, all platform matrices)
  • cargo bench -p engine --bench delta_transfer_benchmark runs on a Linux/macOS host

@oferchen
oferchen force-pushed the perf/delta-transfer-benchmarks branch from f136089 to 118315f Compare March 23, 2026 18:15
Rewrite the delta transfer benchmark with parametric coverage:
- Signature generation: 1KB, 64KB, 1MB, 16MB files (MD4 and XXH3)
- Delta computation: 90%, 50%, 0% similarity across all file sizes
- Delta application: pre-computed deltas at every size x similarity
- End-to-end pipeline: signature -> index -> delta -> apply
@oferchen
oferchen force-pushed the perf/delta-transfer-benchmarks branch from 118315f to 43ae28d Compare March 23, 2026 19:23
@oferchen
oferchen merged commit f32ccc2 into master Mar 23, 2026
4 of 10 checks passed
@oferchen
oferchen deleted the perf/delta-transfer-benchmarks branch March 23, 2026 19:23
oferchen added a commit that referenced this pull request May 1, 2026
Rewrite the delta transfer benchmark with parametric coverage:
- Signature generation: 1KB, 64KB, 1MB, 16MB files (MD4 and XXH3)
- Delta computation: 90%, 50%, 0% similarity across all file sizes
- Delta application: pre-computed deltas at every size x similarity
- End-to-end pipeline: signature -> index -> delta -> apply
oferchen added a commit that referenced this pull request May 5, 2026
Rewrite the delta transfer benchmark with parametric coverage:
- Signature generation: 1KB, 64KB, 1MB, 16MB files (MD4 and XXH3)
- Delta computation: 90%, 50%, 0% similarity across all file sizes
- Delta application: pre-computed deltas at every size x similarity
- End-to-end pipeline: signature -> index -> delta -> apply
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.

1 participant