NiceBenchmarkRunner class

Runs widget benchmarks and collects timing data.

Constructors

NiceBenchmarkRunner({int warmupRuns = 5, int measureRuns = 20, void onProgress(int current, int total)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
measureRuns int
final
onProgress → void Function(int current, int total)?
final
results Map<String, NiceBenchmarkSummary>
Get all recorded benchmark summaries.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
warmupRuns int
final

Methods

clear() → void
Clear all recorded results.
generateReport() String
Generate a report of all benchmarks.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runBenchmark({required String name, required NiceBenchmarkWidgetBuilder builder, Map<String, dynamic> metadata = const {}}) Future<NiceBenchmarkSummary>
Run a benchmark for a widget builder.
toString() String
A string representation of this object.
inherited

Operators

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