Energy Codesumption, Leveraging Test Execution for Source Code Energy Consumption Analysis

Jun 28, 2025·
Jérôme Maquoi
,
Maxime Cauz
,
Benoit Vanderose
Xavier Devroey
Xavier Devroey
· 0 min read
Distribution of the energy consumption of the five highest and five lowest CT of the Spring Boot and Spoon
Abstract
The software engineering community has increasingly recognized sustainability as a key research area. However, developers often have limited knowledge of effective strategies to reduce software energy consumption. To address this, we analyze energy consumption in software execution, aiming to raise developer awareness by linking energy consumption with each line of code. We rely on unit test executions to identify energy-intensive executions and manually analyze five hot and five cold spots to identify potentially energy-intensive source code constructs. Our findings suggest a link between the energy consumption of the source code and the number of objects’ attributes created within that code. These results lay the groundwork for further analysis of the relationship between object instantiation and energy consumption in Java.
Type
Publication
Companion Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering (DevOpsSustain 2025)