Energy Codesumption, Leveraging Test Execution for Source Code Energy Consumption Analysis
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)

Authors
Xavier Devroey
(he/him)
Professor of Software Engineering and Testing
My name is Xavier Devroey. I am an assistant professor of software engineering at the University of Namur, Belgium 🇧🇪, where, together with Benoît Vanderose, we co-lead the SNAIL Team. 🐌 My research goal is to ease software testing by exploring new paths to achieve a high level of automation for test case design, generation, selection, and prioritization.