BenchmarkScene class

A single, repeatable rendering scene used to isolate one performance variable.

build must be a pure function of the scene's own fields: no randomness, no wall-clock reads, nothing that would make two runs of the same scene produce different widget trees. That is what "repeatable" means here -- a regression has to be attributable to a code change, not to noise the scene itself introduced.

Annotations

Constructors

BenchmarkScene({required String id, required BenchmarkAxis axis, required String description, required GeometryTier tier, required WidgetBuilder build})
Creates a scene.
const

Properties

axis → BenchmarkAxis
Which variable this scene isolates.
final
build → WidgetBuilder
Builds the widget tree this scene measures.
final
description → String
One line, human-readable, printed alongside every report so a report is legible without cross-referencing the scene catalog.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable identifier.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tier → GeometryTier
Which geometry producer build pins the layer to.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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