report library
Classes
- ReportFile
-
One bench run report: a
.jsonlfile 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.
Functions
-
medianOf(
List< num> values) → num -
Median of
values(sorted, middle element). -
parseSample(
String line) → Map< String, Object?> ? -
Parses
lineinto a (metric, value) sample, or null. -
reportMetric(
String metric, num? value, {Map< String, Object> ? extra}) → void - Emits one machine-readable benchmark sample on stdout.