CI‑Shaped Workflows: Store What Matters, Fail on What Counts
Описание и применение
Сохранение полного JSON‑артефакта в CI позволяет отклонять сборки по любому метрике, а не только по среднему значению, обеспечивая прозрачный аудит и возможность последующего анализа.
Задача
CI pipelines that only surface a mean value are blind to the real story of code performance; a single number can hide regressions, noise, or a broken measurement.
Результат
Storing the full artifact turns CI from a black box into a transparent audit trail, enabling failure on the right metric and later investigation.
Рабочий процесс
- Ensure csperf is in PATH
- Run workload and capture artifact:
csperf run --input examples/cpp/matrix_traversal.cpp --backend cpu --output results/ci.json - Profile artifact:
csperf profile results/ci.json --json
Доказательства
Many teams run csperf run … in CI and only look at the printed mean.
csperf lets you: Store the entire JSON artifact in your CI artifact store.
Fail the job if any metric deviates beyond a threshold.
- Дата записи: 2026-10-15T13:56:01.133Z