Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Compare GPUs & AI Accelerators: Perf per Watt

· 4 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Comparing GPUs and AI accelerators by performance per watt helps you pick the most energy-efficient hardware for your workload, which lowers electricity costs and cooling requirements. This guide walks you through a practical, repeatable method using real benchmarks and power measurements. You'll need access to the hardware (or published results), a benchmarking tool, and a way to measure power draw.

What You'll Need

  • A GPU or AI accelerator to test (or a set of published benchmark results from reputable sources).
  • A benchmarking workload relevant to your use case (e.g., ML training, inference, rendering).
  • Power measurement: a wall power meter (like a Kill A Watt) or software like nvidia-smi (for NVIDIA) or rocm-smi (for AMD).
  • A stopwatch or timing script to record benchmark duration.
  • A spreadsheet or notebook to log results.

Step-by-Step

  1. Define your workload. Choose a representative task—e.g., training a specific neural network, running a stable diffusion inference, or rendering a 3D scene. Use the same workload for all devices.
  2. Set up a consistent test environment. Use the same driver version, same operating system, and same cooling conditions. If possible, run tests in a temperature-controlled room.
  3. Measure idle power. With the GPU idle and the display off, record the power draw for 5 minutes. This is your baseline.
  4. Run the benchmark. Execute your workload and time it. For ML, use a framework like PyTorch or TensorFlow with a fixed batch size and model. For rendering, use a standard scene.
  5. Measure peak and average power during the run. Use a wall meter for the whole system (subtract idle system power) or software for the GPU alone. Log power every second.
  6. Calculate total energy consumed. Multiply average power (in watts) by the run time (in hours) to get watt-hours (Wh). For example, 300W average for 0.5 hours = 150Wh.
  7. Compute performance per watt. Divide the benchmark score (e.g., frames rendered, inferences per second, or training throughput) by the average power in watts. For example, 200 frames per second ÷ 300W = 0.67 frames per watt.
  8. Repeat for each device. Run the same test at least three times per device and take the median to reduce variance.
  9. Compare and normalize. Create a table with columns: device, average power, benchmark score, performance per watt. Rank by performance per watt.

Common Mistakes

  • Not subtracting idle power. If you measure whole-system power, you must subtract the system's idle draw to get the GPU's contribution.
  • Using different driver versions. Drivers can significantly affect performance and power. Keep them consistent.
  • Ignoring thermal throttling. If a card overheats, it will clock down and skew results. Ensure proper cooling and let the card reach steady-state temperature before starting.
  • Comparing different workload types. Performance per watt for training is not directly comparable to inference. Always compare apples to apples.
  • Using peak power instead of average. Peak power is misleading; use average power over the entire run.

Tips

  • Use a power meter that can log data over time; manual reading every second is error-prone.
  • For NVIDIA GPUs, use nvidia-smi dmon to log power draw. For AMD, use rocm-smi --showpower.
  • Run a short warm-up workload before timing to stabilize clocks and temperatures.
  • If you're comparing published results, ensure they used the same methodology and cite your sources.
  • Consider the total cost of ownership: a card with slightly lower perf/watt but much lower price might be better for your budget.

Troubleshooting

  • Results vary wildly between runs. Check for background processes, automatic updates, or other loads. Close all unnecessary software and disable network access if possible.
  • Power readings seem too high or low. Verify your measurement method. For software readings, ensure you're reading the correct sensor (e.g., GPU power vs. board power).
  • The benchmark crashes on one device. Update drivers or reduce memory usage. If the workload is too large for a card, scale it down proportionally and note the change.
  • The card throttles early. Improve case airflow, clean fans, or lower ambient temperature. Do not modify voltage settings—this can cause instability and may affect warranty.
  • You don't have physical access to the hardware. Rely on published benchmarks from reputable tech sites, but ensure they used a consistent methodology. Check the test setup description.

Frequently Asked Questions

What is a good performance per watt number?

It depends on the workload. For AI inference, modern accelerators can achieve hundreds of inferences per watt. For training, it's often measured in samples per second per watt. Compare only within the same workload.

Should I measure the whole system or just the GPU?

For comparing GPUs, measure the GPU alone using software tools. For total system efficiency, measure the whole system and subtract idle system power.

How long should the benchmark run?

At least 5 minutes to get a stable average. Longer runs are better for detecting thermal effects, but 5–10 minutes is usually sufficient.

Can I trust manufacturer TDP numbers?

TDP (Thermal Design Power) is a design specification, not a measured power draw. Real power can be higher or lower. Always measure actual power.

What if I can't find benchmarks for my exact workload?

Use a proxy workload that is as similar as possible. For example, if you need inference, use a standard image classification model. Note the differences in your conclusions.

Does undervolting improve performance per watt?

Yes, undervolting can reduce power consumption while maintaining performance, thus improving perf/watt. However, it can cause instability and may affect warranty. Only do it if you're comfortable and at your own risk.