Skip to content

perf: add 100K files benchmark with phase breakdown - #3019

Merged
oferchen merged 1 commit into
masterfrom
perf/100k-files-benchmark
Mar 23, 2026
Merged

oferchen merged 1 commit into
masterfrom
perf/100k-files-benchmark

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add scripts/benchmark_100k.sh that creates 100,000 small files (1-4KB each) across 1,000 directories and benchmarks oc-rsync vs upstream rsync
  • Measures three phases: initial sync (full transfer), no-change sync, and incremental sync (10% modified)
  • Reports wall-clock time and peak RSS (via /usr/bin/time) with median of 3 runs
  • Outputs both a terminal table and a CI-friendly markdown summary with speedup ratios
  • Accepts OC_RSYNC and UPSTREAM_RSYNC env vars for binary paths
  • Uses temp dirs with trap-based cleanup

Test plan

  • Run on Linux: ./scripts/benchmark_100k.sh
  • Run on macOS: ./scripts/benchmark_100k.sh
  • Verify cleanup: confirm temp dirs are removed after completion
  • Verify with custom binary paths: OC_RSYNC=./my-binary UPSTREAM_RSYNC=/usr/local/bin/rsync ./scripts/benchmark_100k.sh

Benchmark script that creates 100,000 small files (1-4KB) across 1,000
directories and measures initial sync, no-change sync, and incremental
sync (10% modified) for both oc-rsync and upstream rsync. Reports
wall-clock time and peak RSS with median of 3 runs.
@oferchen
oferchen force-pushed the perf/100k-files-benchmark branch from c181dba to 5243341 Compare March 23, 2026 17:59
@oferchen
oferchen merged commit 3485725 into master Mar 23, 2026
9 checks passed
@oferchen
oferchen deleted the perf/100k-files-benchmark branch March 23, 2026 17:59
oferchen added a commit that referenced this pull request May 1, 2026
Benchmark script that creates 100,000 small files (1-4KB) across 1,000
directories and measures initial sync, no-change sync, and incremental
sync (10% modified) for both oc-rsync and upstream rsync. Reports
wall-clock time and peak RSS with median of 3 runs.
oferchen added a commit that referenced this pull request May 5, 2026
Benchmark script that creates 100,000 small files (1-4KB) across 1,000
directories and measures initial sync, no-change sync, and incremental
sync (10% modified) for both oc-rsync and upstream rsync. Reports
wall-clock time and peak RSS with median of 3 runs.
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