chore(cli): Add hyperfine benchmark scripts

Add `bench` and `bench-compare` npm scripts for measuring CLI performance
with hyperfine. `bench` builds first then runs 10 iterations with 2 warmup
runs. `bench-compare` skips the build step for A/B comparisons against a
pre-built baseline.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kazuki Yamada
2026-03-31 22:24:25 +09:00
parent e3b365232a
commit ff5debef11
+2
View File
@@ -34,6 +34,8 @@
"repomix-website": "node --run repomix -- --include 'website'",
"time-node": "node --run build && time node bin/repomix.cjs",
"time-bun": "bun run build && time bun bin/repomix.cjs",
"bench": "node --run build && hyperfine --warmup 2 --runs 10 'node bin/repomix.cjs'",
"bench-compare": "hyperfine --warmup 2 --runs 10 'node bin/repomix.cjs'",
"memory-check": "node --run repomix -- --verbose | grep Memory",
"memory-check-one-file": "node --run repomix -- --verbose --include 'package.json' | grep Memory",
"website": "docker compose -f website/compose.yml build --no-cache && docker compose -f website/compose.yml up",