It's Not Easy Being Green: On the Energy Efficiency of Programming Languages
Nicolas van Kempen, Hyuk-Je Kwon, Dung Tuan Nguyen, Emery D. Berger
Abstract
Does the choice of programming language affect energy consumption? Previous highly visible studies have established associations between certain programming languages and energy consumption. A causal misinterpretation of this work has led academics and industry leaders to use or support certain languages based on their claimed impact on energy consumption. This paper tackles this causal question directly: it develops a detailed causal model capturing the complex relationship between programming language choice and energy consumption. This model identifies and incorporates several critical but previously overlooked factors that affect energy usage. These factors, such as distinguishing programming languages from their implementations, the impact of the application implementations themselves, the number of active cores, and memory activity, can significantly skew energy consumption measurements if not accounted for. We show—via empirical experiments, improved methodology, and careful examination of anomalies—that when these factors are controlled for, notable discrepancies in prior work vanish. Our analysis suggests that the choice of programming language implementation has no significant impact on energy consumption beyond execution time.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext d01136a6-fd9e-48e3-a1b0-ea4483e28894Builds on6
- Green AI: Do Deep Learning Frameworks Have Different Costs?Stefanos Georgiou, Maria Kechagia, Tushar Sharma, Federica Sarro et al.ICSE 2022 · 90 citations
- Going Green for Less Green: Optimizing the Cost of Reducing Cloud Carbon EmissionsWalid A. Hanafy, Qianlin Liang, Noman Bashir, Abel Souza et al.ASPLOS 2024 · 43 citations
- Investigating Managed Language Runtime Performance: Why JavaScript and Python are 8x and 29x slower than C++, yet Java and Go can be Faster?David Lion, Adrian Chiu, Michael Stumm, Ding YuanUSENIX ATC 2022 · 31 citations
- Triangulating Python Performance Issues with SCALENEEmery D. Berger, Sam Stern, Juan Altmayer PizzornoOSDI 2023 · 25 citations
- Rethinking Java Performance AnalysisStephen M. Blackburn, Zixian Cai, Rui Chen, Xi Yang et al.ASPLOS 2025 · 19 citations
Related papers
- Twins or False Friends? A Study on Energy Consumption and Performance of Configurable SoftwareMax Weber, Christian Kaltenecker, Florian Sattler, Sven Apel et al.ICSE 2023 · 16 citations
- VESTA: Power Modeling with Language Runtime EventsJoseph Raskind, Timur Babakol, Khaled Mahmoud, Yu David LiuPLDI 2024 · 5 citations
- Energy-Efficient Software Development: A Multi-dimensional Empirical Analysis of Stack OverflowBihui Jin, Heng Li, Pengyu Nie, Ying ZouICSE 2026 · 1 citation
- IrEne: Interpretable Energy Prediction for TransformersQingqing Cao, Yash Kumar Lal, Harsh Trivedi, Aruna Balasubramanian et al.ACL 2021
- Calm energy accounting for multithreaded Java applicationsTimur Babakol, Anthony Canino, Khaled Mahmoud, Rachit Saxena et al.FSE 2020 · 5 citations
