HarnessBenchmarkRunner class

Benchmark runner implementation using Dart's built-in benchmark capabilities.

Provides accurate performance measurement with statistical analysis, warmup periods, and platform-specific optimizations for reliable results.

Constructors

HarnessBenchmarkRunner.new({int minIterations = 100, int maxIterations = 100000, int targetDurationMicros = 1000000})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
Check if benchmark runner is available and properly configured.
no setter
maxIterations int
final
minIterations int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetDurationMicros int
final

Methods

compare({required Map<String, dynamic Function()> functions, int? iterations, int warmupIterations = 100}) → ComparativeBenchmarkResult
Run a comparative benchmark between multiple functions.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run({required String name, required dynamic function(), int? iterations, int warmupIterations = 100}) → BenchmarkResult
Run a benchmark for the given function.
toString() String
A string representation of this object.
inherited

Operators

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