Rigorous performance investigation workflow. /perf enforces sequential benchmarks, minimum run durations, and evidence-backed decision-making.
/perf
- Establishes a baseline and persists results under
{state-dir}/perf/ - Runs controlled experiments one at a time
- Performs profiling and hotspot analysis
- Consolidates findings into a single baseline per version
All behavior is governed by:
docs/perf-requirements.mddocs/perf-research-methodology.md
- Hypotheses can be supplied via
--hypotheses-file <path>during the hypotheses phase.
perf-theory-gatherer- Hypothesis generation (git history + evidence)perf-code-paths- Code-path discovery before profilingperf-theory-tester- Controlled experiments for hypothesesperf-analyzer- Evidence-backed perf recommendationsperf-investigation-logger- Structured log entries with evidence
{state-dir}/perf/investigation.json{state-dir}/perf/investigations/<id>.md{state-dir}/perf/baselines/<version>.json