lib/cmetrics/docs/ai/performance-review.md
Accept only repeatable CMetrics performance improvements without correctness or workload regressions.
Use for map lookup/update, codec allocation, cardinality, and hot-path changes.
Follow benchmarks/README.md. Build Release with CMT_BENCHMARKS=ON; run at
least five alternating before/after samples on the same idle machine with the
same compiler, flags, CPU policy, cardinality, and operations. Compare medians,
variability, allocations when relevant, and perf stat counters. Run
scripts/agent-verify.sh for correctness.
Report revisions, hardware/software environment, exact commands, raw samples, medians, percentage changes, counter changes, correctness results, and affected workloads. Explain any regression.
Do not ship noise-level, single-run, differently configured, or correctness- regressing results. Escalate tradeoffs that improve one supported workload while materially degrading another.