report library

Classes

ReportFile
One bench run report: a .jsonl file of log lines with embedded envelope samples. Reading a report reduces every metric's samples to its median — the number the golden CLI records and checks against.

Constants

envelope → const String
Prefix of every machine-readable sample line.

Functions

medianOf(List<num> values) num
Median of values (sorted, middle element).
parseSample(String line) Map<String, Object?>?
Parses line into a (metric, value) sample, or null.
reportMetric(String metric, num? value, {Map<String, Object>? extra}) → void
Emits one machine-readable benchmark sample on stdout.