mirror of
https://github.com/millionco/react-doctor.git
synced 2026-09-14 20:00:24 +08:00
da3ebf57a2
- scripts/performance/corpus.json + performance:corpus (fetch-corpus.ts) pin the benchmark repos into .performance/corpus; pnpm performance --corpus <names> selects them - REACT_DOCTOR_OXLINT_SPAWN_LOG (off by default) makes spawn-oxlint.ts append one JSON line per oxlint child plus parent CPU at exit; the harness turns it into a scan timeline (procs, failed waves, sum of child durations, avg/peak concurrency, head, tail) - --rule-timings aggregates REACT_DOCTOR_RULE_TIMINGS_DIR output into ranked rule and selector tables; --profile merges child .cpuprofile files into top-40 function and source-URL tables with a plugin/oxlint/gc/node split - --compare reports a speedup ratio per target and flags diagnostics-hash mismatches; --strict exits non-zero on a mismatch - bash time -p fallback when GNU /usr/bin/time is missing so user/sys CPU is always recorded Co-Authored-By: aiden@million.dev <aiden.bai05@gmail.com>