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

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.

Publication
Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering (FSE Companion ’25)
Jérôme Maquoi
Jérôme Maquoi
PhD Student
Benoît Vanderose
Benoît Vanderose
Professor of Software Engineering
Xavier Devroey
Xavier Devroey
Professor of Software Engineering

My research goal is to to ease software testing by exploring new paths to achieve a high level of automation for test case design, generation, selection, and prioritization. My main research interests include search-based and model-based software testing, test suite augmentation, DevOps, and variability-intensive systems.