Module benchmark

Module benchmark 

Source
Expand description

2026-09-26: The Benchmark trait, a Plugin driven one step at a time, and BenchmarkDescriptor, its static identity.

A benchmark owns its phase state and does one step of work per Benchmark::next, returning a frame. It must not block the runtime or loop to completion inside one step: the driver checks for cancellation only between frames. Benchmark::run delegates to crate::executor::drive, the same loop the executor uses.

Owner: bench. Invariants: none beyond the types.

Structs§

BenchmarkDescriptor
2026-09-26: Static identity of a benchmark, and how to construct one. The registry (registry::ALL), the TUI list pane and the run directories (ArtifactStore::runs_dir) all read it.
ModelExpectation
2026-09-26: Which checkpoints a benchmark’s numbers mean something for.

Traits§

Benchmark