Skip to content

energy

diapason.bench.energy

Energy benchmark — per-sample energy, power, and efficiency measurement.

EnergyBenchmark

Bases: BaseBenchmark

Measures energy per token at thermal equilibrium.

Collects per-sample energy (J), power (W), throughput (tok/s), and energy-per-token (J/tok) so the stats table has real p50/min/max/std/p95 values rather than just aggregates.

ensure_registered()

Register the energy benchmark if not already present.