VmBenchmarkRunner class final
Optional wall-clock runner for local benchmarking, not CI assertions.
This runner uses VM timing and file-friendly persistence helpers, so it is not safe for web tests.
Constructors
- VmBenchmarkRunner({int warmupCount = 1, int repetitionCount = 10})
- Creates a runner with warmups and measured repetitions.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- repetitionCount → int
-
Maximum number of measured samples to collect.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- warmupCount → int
-
Number of unmeasured setup iterations run before sampling.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
{required String name, required VmBenchmarkOperation operation, BenchmarkCancellationToken? cancellation, Map< String, Object?> metadata = const {}}) → Future<BenchmarkResult> -
Runs
operationand returns timing statistics for completed samples. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited