Before you start
- Define the workload. The exact model, precision, input sizes and request pattern you run in production.
- Fix the device state. Same hardware, firmware, OS image, power mode and power limit you will deploy.
- Choose the duration. At least as long as a real mission or shift, and long enough for temperature to plateau.
- Record the environment. Ambient temperature, enclosure, airflow.
Step 1: Instrument two ways
Read power from the device's on-board sensors, and place an independent inline power meter between the supply and the device. Software readings are convenient but can drift, cover only part of the system, or become unreliable under load. Agreement between the two sources is what makes the result credible. Industry benchmarks such as MLPerf Power use external analyzers for the same reason.
Step 2: Synchronize clocks
Timestamp power samples, temperature, clock frequency and each inference request against the same clock, so you can attribute energy to work and spot throttling.
Step 3: Warm up, then run sustained
Discard a warm-up period, then run continuously. Repeat runs to measure variance. Short bursts flatter results because they finish before the device heats up.
Step 4: Compute the metrics
| Metric | How | Why |
|---|---|---|
| Energy per output | Total joules ÷ tokens, inferences or frames | The efficiency number that maps to mission time |
| Throughput | Outputs per second, sustained | Capacity after thermal steady state |
| Latency p50 / p95 / p99 | Per-request timing percentiles | Control loops fail on the slow outliers |
| Throttling events | Clock drops coinciding with temperature limits | Explains latency spikes |
| Source agreement | On-board vs external meter energy | Confidence in the result |
Step 5: Make it verifiable
Store raw samples, not just summaries. Sign each record and chain it to the previous one so any edit is detectable, and share the logs with whoever has to rely on the result. Why this matters.
Step 6: Report with conditions
Publish the numbers alongside model, precision, device, power limit, ambient temperature, run length, request pattern and software versions. A number without conditions can't be compared or reproduced.
Checklist: target device · deployed power limit · sustained run · two power sources · synchronized logs · energy per output · p99 latency · throttling events · signed raw data · disclosed conditions.
Frequently asked questions
How do you measure AI inference energy?
Run the real workload on the target device for a sustained period, measure power with both on-board sensors and an external inline meter, integrate power over time, and divide energy by outputs produced.
Why use an external power meter?
On-board software readings can drift or become unreliable under load and may not cover the whole system. An external meter provides an independent check.
How long should an AI energy test run?
At least as long as a real mission or shift, and long enough for device temperature to reach steady state.