NiceBenchmarkResult class

Result of a single benchmark run.

Constructors

NiceBenchmarkResult({required String name, required Duration buildTime, required Duration layoutTime, required Duration paintTime, required Duration totalTime, required int frameCount, required double averageFps, required DateTime timestamp, Map<String, dynamic> metadata = const {}})
const

Properties

averageFps double
final
buildTime Duration
final
frameCount int
final
hashCode int
The hash code for this object.
no setterinherited
layoutTime Duration
final
metadata Map<String, dynamic>
final
name String
final
paintTime Duration
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double
Performance score (0-100, higher is better).
no setter
timestamp DateTime
final
totalTime Duration
final

Methods

meetsTarget({Duration target = const Duration(milliseconds: 16)}) bool
Whether this result meets the performance target (default 60fps = 16.67ms).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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