AsyncBenchmarkBase class

Constructors

AsyncBenchmarkBase(String name, {ScoreEmitter emitter = const PrintEmitter()})
Empty constructor.
const

Properties

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

Methods

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

Operators

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

Static Methods

measureFor(Future<void> f(), int minimumMillis) Future<double>
Measures the score for this benchmark by executing it repeatedly until time minimum has been reached.