---
title: "Tech Tip #73: Measure idle power first"
description: "Before you measure your code, measure the machine doing nothing."
url: https://greencode.ai/tech-tips/73-measure-idle-first/
---

# Tech Tip #73: Measure idle power first

**Before you measure your code, measure the machine doing nothing.**

### The problem

Many platforms draw a large share of their peak power at idle. A reading taken under load mixes the machine's idle draw with your software's, and two teams will report different numbers depending on how they treat it.

### The fix you can use today

- Record the idle baseline on the same machine before each test.
- Report whether your figure includes or excludes idle power.
- Use the same rule every time you compare.

GreenCode researchers found that machines draw a lot of power doing nothing, so they measure that first.

### Tools that help

- [GreenCode Constitution profiler (profile.sh)](https://greencode-constitution.org/skill.md?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode) (GreenCode researchers): a script from the Constitution tooling that measures the energy of a command from processor counters, GPU sensors and an optional smart plug, and writes the result as JSON
- [green-languages](https://github.com/PLEnergyDev/green-languages?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode) (GreenCode researchers): a command-line tool that measures the energy of whole programs or marked sections of code, across languages
- [PowerJoular](https://github.com/joular/powerjoular?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): monitors the power of a machine and of individual processes on PCs, servers and single-board computers

### How GreenCode helps

GreenCode helps tackle this by tying each energy figure to a specific version, configuration and test run, and stating the allocation rule and confidence, so a figure can be traced back to what produced it. [More on this](https://greencode.ai/benefit/accurate-esg-data-for-csrd-reporting/).

### Tags

#measurement#idle#reporting

### Sources

- [GreenCode State of the Art Review, D2.1 (2025), PDF p. 16: substantial idle power draw, often a significant fraction of peak](https://greencode.ai/publications/d2-1-state-of-the-art-review/)
- [GreenCode State of the Art Review, D2.1 (2025), PDF p. 105: different footprints for the same service depending on how idle energy is allocated](https://greencode.ai/publications/d2-1-state-of-the-art-review/)

[All GreenCode Tech Tips](https://greencode.ai/tech-tips/)

#### Key Facts

- Tip **#73**
- For **Ops and infrastructure**
- Category **Measuring energy**
- Format **short video**
![GreenCode](https://greencode.ai/wp-content/uploads/2024/12/greencode-logo-website-small-colours-2.webp)

Want this checked on your own system? Talk to the GreenCode team.

[Get in touch](https://greencode.ai/contact/)
