GoldenStore class
The benchmarks.json store: reads recorded goldens, checks measured
samples against them (regression gate) and records new ones.
Constructors
- GoldenStore({String path = goldensPath})
Properties
Methods
-
check(
Map< String, num> measured, {required String ref, double slack = 0.3}) → List<MetricCheck> -
Checks
measuredmedians against the recorded goldens ofref: every metric is "lower is better", so the gate is one-sided — measured worse than the golden by more than theslackfails, measured better always passes. Missing goldens (a check before any record) print a warning and do not fail — the first recording on a reference establishes them. -
load(
String metric, {List< String> preferRefs = const ['android', 'any'], bool fallbackAny = true}) → num? -
Recorded golden for
metric, preferring the references inpreferRefs(default:android, thenany), then — whenfallbackAny— the first recorded value. Null when the file is missing, corrupt, or has no entry. Head-to-head refs (android-scv, android-tcm) plug in viapreferRefs. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
record(
Map< String, num> measured, {required String ref}) → void -
Records
measuredmedians as goldens forrefand writes the store when anything changed. Prints onerecordedline per metric and a finalwroteline — the CLI log the CI publishes. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited