BenchmarkScore class

A single benchmark score value collected from the benchmark.

Constructors

BenchmarkScore({required String metric, required num value, num? delta})
Creates a benchmark score.
BenchmarkScore.parse(Map<String, Object?> json)
Deserializes a JSON object to create a BenchmarkScore object.
factory

Properties

delta num?
Optional delta value describing the difference between this metric's score and the score of a matching metric from another BenchmarkResults.
final
hashCode int
The hash code for this object.
no setterinherited
metric String
The name of the metric that this score is categorized under.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value num
The result of measuring a particular metric in this benchmark run.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Serializes the benchmark metric to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

deltaKey → const String
The key for the value delta in the BenchmarkScore JSON representation.
metricKey → const String
The key for the value metric in the BenchmarkScore JSON representation.
valueKey → const String
The key for the value value in the BenchmarkScore JSON representation.