ComparisonCell class final
One cell of a comparison with its ranking worked out, for renderers.
Constructors
- ComparisonCell({required Measurement? measurement, required double score, required double best, required bool isBaseline, required double? ratio, double? pValue, bool isSimilar = false})
-
Creates a cell.
const
Properties
- best → double
-
The best score in this cell's group and column.
final
- fraction → double
-
score as a fraction of best, from 0 to 1. A best score can be
infinite when a run is faster than the clock resolution; the best cells
then get 1 and the others 0.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBaseline → bool
-
Whether this cell is in the group's baseline row.
final
- isBest → bool
-
Whether this cell has the best score in its group and column.
no setter
- isSimilar → bool
-
Whether the difference from the baseline is not significant, so the
ratio is likely noise.
final
- isSkipped → bool
-
Whether this cell was skipped.
no setter
- measurement → Measurement?
-
The result;
nullwhen the benchmark was skipped.final - pValue → double?
-
The p-value of the difference from the baseline (see mannWhitneyP);
nullwhen there is no ratio or too few samples to test.final - ratio → double?
-
score divided by the baseline row's score in this column, above 1 when
faster.
nullfor the baseline row itself, for skipped cells, and when there is no baseline to compare with.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → double
-
The metric score of measurement; 0 when skipped.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited