---
title: "Tech Tip #12: Faster is not always greener (video)"
description: "Your speed-up might not save the energy you think."
url: https://greencode.ai/shorts/12-faster-is-not-always-greener/
---

# Tech Tip #12: Faster is not always greener (video)

## Tech Tip #12: Faster is not always greener

**Your speed-up might not save the energy you think.**

[Watch the video](https://media.greencode.ai/shorts/faster-is-not-always-greener-f3af74196f32.mp4)

Video created by [explainapaper.com](https://explainapaper.com/?utm_source=greencode.ai&utm_medium=film&utm_campaign=made-by)

### The problem

Teams treat speed as a stand-in for energy, but the two do not move together. On llama.cpp, GreenCode research cut GPU energy by 4.7% while speed rose only 3%: energy and time told different stories.

### The fix you can use today

- Measure energy directly, not only runtime.
- Compare before and after on the same machine under the same load.
- Report both numbers; a change can be faster and hungrier, or slower and leaner.

GreenCode researchers found that speed gains and energy savings are not the same thing, so they measure both.

### Tools that help

- [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
- [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
- [perf (RAPL counters)](https://perfwiki.github.io/main/?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): Linux perf reads the processor's RAPL energy counters, e.g. `perf stat -e power/energy-pkg/`

### How GreenCode helps

GreenCode helps tackle this by running a load test built from your system's own endpoints. It records energy as well as speed, and ranks the hotspots by the energy they use. [More on this](https://greencode.ai/feature/automated-performance-testing/).

### Tags

#measurement#profiling#llm#gpu

### Sources

- [GreenCode Constitution (Kapenekakis et al., GreenAI workshop, ECML PKDD 2026): llama.cpp: 4.7% GPU energy saved (3.7% in total) against a 3% speed gain](https://greencode.ai/publications/greencode-constitution-agent-principles-for-optimizing-code-and-llm-inference-en/)
- [Green AI is a mathematics problem as much as a hardware one](https://greencode.ai/news/mathematics-and-green-ai/)

### Transcript

Your speed-up might not save the energy you think. Myth or fact: faster code always uses less energy? Myth. Energy is power multiplied by time. Finish sooner but draw more power, and you can still use more. More threads, higher clock speeds and busier memory all draw more power. GreenCode researchers tuned a widely used AI program. Its graphics card used nearly five percent less energy. But it ran only three percent faster. Speed and energy told different stories. Here is the fix you can use today. Measure energy directly, not only how long it takes. Compare before and after, on the same machine, under the same load. Report both numbers. A change can be faster and hungrier, or slower and leaner. Measure it with tools like GreenCode's green-languages, the Constitution profiler, or Linux perf. GreenCode helps tackle this by running a load test built from your own system. It records energy as well as speed, and ranks hotspots by energy. That was GreenCode Tech Tip number twelve. Follow for the next tip, and find more on greencode.ai/tech-tips.

[The tip in full](https://greencode.ai/tech-tips/12-faster-is-not-always-greener/)

[« Tech Tip #11: Tune your video pipeline](https://greencode.ai/shorts/11-transcode-video-efficiently/)[Tech Tip #13: Clean code is greener code »](https://greencode.ai/shorts/13-clean-code-is-greener-code/)

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

#### Key Facts

- Tip **#12**
- For **Developers**
- Length **1:11**
- Category **Measuring energy**
![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/)
