IsolateBenchmarkRunner class
A BenchmarkRunner that executes every scenario in its own isolate.
- Implemented types
Constructors
- IsolateBenchmarkRunner({BenchmarkRunnerConfig config = const BenchmarkRunnerConfig()})
- Creates an isolate runner.
Properties
- config → BenchmarkRunnerConfig
-
Runner configuration applied inside each spawned isolate.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dryRun(
BenchmarkContract scenario, {Map< String, dynamic> ? config}) → Future<BenchmarkDryRunResult> -
Validates the scenario metadata and configuration without executing
anything (FR-012).
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
List< BenchmarkContract> scenarios, {Map<String, dynamic> ? globalConfig, int? concurrency, Duration? timeout}) → Future<BenchmarkSuiteResult> -
Runs
scenariosand aggregates their results into a suite report (FR-008). Whenconcurrencyis greater than 1 the scenarios are executed by a worker pool of that size.timeoutoverrides the per-scenario timeout for every scenario in the suite.override -
runSingle(
BenchmarkContract scenario, {Map< String, dynamic> ? config, Duration? timeout}) → Future<BenchmarkResult> -
Runs a single scenario and returns its structured result.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited