PerfBenchmarkBase class

Inheritance

Constructors

PerfBenchmarkBase(String name, {ScoreEmitter emitter = const PrintEmitter()})

Properties

emitter ScoreEmitter
finalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

exercise() → void
Exercises the benchmark. By default invokes run 10 times.
inherited
measure() double
Measures the score for the benchmark and returns it.
inherited
measurePerf() Future<double>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
report() → void
inherited
reportPerf() Future<void>
run() → void
The benchmark code.
inherited
setup() → void
Not measured setup code executed prior to the benchmark runs.
inherited
teardown() → void
Not measured teardown code executed after the benchmark runs.
inherited
toString() String
A string representation of this object.
inherited
warmup() → void
Runs a short version of the benchmark. By default invokes run once.
inherited

Operators

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