Methodology

Lemon Metrics wraps Lemonade’s built-in lemonade bench --json with a power-sampling layer. Performance metrics (tokens/sec, TTFT, memory) come from Lemonade itself; we add wall-clock watts sampled at 1–2 Hz for the entire run.

What is recorded per run

Power sources

PlatformSamplerSource
Linux (AMD Ryzen AI, Radeon iGPU)hwmonsysfs power1_average, summed
Linux (Intel)raplintel-rapl energy_uj, differentiated
Linux (AMD dGPU)rocm-smirocm-smi --showpower --json
macOSpowermetricsrequires passwordless sudo -n
Windowsnullno reliable real-time source yet; energy marked unavailable
fallbacknullmarks power_available: false; run still completes

Windows power — call for help

No reliable real-time wattage source exists on Windows today (Win32_PowerMeter is rarely populated; powercfg /energy is a 60 s report, not a per-sample stream). Windows runs record full performance metrics with power_available: false.

Know a reproducible way to sample watts on Windows? Open an issue or PR — we want a first-class windows sampler.

Energy metrics

With P the mean sampled power and T the wall duration:

Per-scenario energy is P × scenario mean duration and is labelled an estimate, because the bench reloads models between scenarios; only wall-level energy is authoritative.

Honesty rules

Full details: methodology on GitHub.