charts library

Classes

ChartPoint
One measured point of a run: a metric under a ref, with its display unit (charts name the series metric@ref — one series per reference setup).

Functions

chartDataJson(List<ChartPoint> points) String
The github-action-benchmark customSmallerIsBetter input: a JSON array of {name, unit, value} entries (their custom-tool schema; range/extra are optional and unused here).
chartUnitFor(String metric) String
Display unit of metric for chart series, or '' for metrics outside the published defs (custom.* scenarios record their own units).
checkReportJson(List<MetricCheck> rows) String
Machine-readable verdicts of one run's checks, keyed for consumers (the action's PR-comment step renders the regressions rows).