Static code analysis for reducing energy code smells in different loop types: a case study in Java
Wed 26 Jun 2024 14:00 - 15:30 at ConverStations Room (A108) - ConverStation #2
An increase in ICT devices and services has led to a rise in carbon emissions. As a result, there is a growing demand for energy-efficient software; however, this demand remains unmet due to the lack of knowledge regarding the best practices for reducing energy consumption in software. Unnecessary iterations and faulty looping conditions in different loops can consume high energy, and loops are considered as one of the most energy consuming entities. The purpose of this study is to detect and rectify energy code smells in different Java loop types by implementing static code analysis. Using the DSR approach, a Java Maven custom SonarQube plugin, GreenForLoops, was developed. The plugin underwent in-house testing as well as evaluation by professionals from industry. The professionals had provided feedback, which were later analyzed by using a qualitative method. For internal testing, 16 different open-source Java projects were selected. The results demonstrated considerable variations in the prevalence of energy code smells across the projects. Additionally, the plugin provided sample code suggestions to address each identified energy code smell. Finally, based on professional reviews, the plugin received an overall rating of Very Good. In conclusion, the plugin had successfully detected code smells and suggested code samples to rectify the detected code smells. However, it cannot be overlooked that the plugin may also generate false positives.
Tue 25 JunDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
16:30 - 18:00 | Remote Presentation #1Journal First / Research Papers at Nils Enlund Chair(s): Philipp Wiesner Technische Universität Berlin Group 4Zoom - https://kth-se.zoom.us/j/68775095116(Join Breakout room - Nils Enlund) | ||
16:30 22mResearch paper | Static code analysis for reducing energy code smells in different loop types: a case study in Java Research Papers | ||
16:52 22mResearch paper | The Effect of Analytical Tools on Energy Consumption in Websites Research Papers Panu Puhtila University of Turku, Lauri Kivimaki University of Turku, Timi Heino University of Turku, Jari-Matti Mäkelä University of Turku, Sampsa Rauti University of Turku, Tuomas Mäkilä University of Turku | ||
17:15 22mResearch paper | Energy Efficient Matrix Computations through Homomorphic Compression Research Papers Matthieu Martel Université de Perpignan Via Domitia, Celia Picard École Nationale de l'Aviation Civile, Université de Toulouse, Abdelmouhaimen Sarhane Université de Toulouse | ||
17:37 22mPaper | Software-in-the-loop simulation for developing and testing carbon-aware applications Journal First Philipp Wiesner Technische Universität Berlin, Marvin Steinke Technische Universität Berlin, Odej Kao Technische Universität Berlin DOI |
Wed 26 JunDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
Virtual Only session - https://kth-se.zoom.us/j/68775095116
(Join Breakout room - Nils Enlund)
- Check the ICT4S email you received on Monday for the password or the link with the password included
- On-site attendees, use the QR Code on the ICT4S 2024 guide you received at registration