Criterion bench hygiene (minimal)
Add a bench when
- •You add an unsafe fast path
- •You change convolution/downsample/scan loops
- •You introduce new thresholds or ROI behavior that changes work per scan
Bench rules
- •Use representative sizes (e.g., 1280×1024, 720p, “laser typical”).
- •Avoid random input unless seeded; deterministic data makes diffs meaningful.
- •Name benches by operation and size:
downsample_u8_1280x1024,laser_rows_1280x512.
Report
- •
If you changed perf behavior, leave a short note in the PR/commit message:
- •what got faster/slower and why (one sentence)