Abstract
Software energy efficiency has gained increasing attention of the research community. How to improve it, however, still lacks evidence. Specifically, the impact of code smell refactoring on energy efficiency has been scarcely investigated. In the pilot study here reported, we investigate the impact on performance and energy consumption of refactoring well-known code smells on Java software applications. In order to understand if software metrics can be used as indicators of the energy impact of refactoring, we also measured the variation caused by refactoring on a set of well-established software metrics. We conducted a controlled experiment using state-of-the-art power measurement equipment. Statistical hypothesis testing and effect size estimation were performed on the experimental results. Results show that in one out of three applications, refactoring each smell significantly impacted power- and energy consumption. Specifically, refactoring Feature Envy and Long Method smells led to a 49% energy efficiency improvement. No software metrics significantly correlated with execution time, power or energy consumption. In conclusion, refactoring code smells can significantly improve software energy efficiency. The magnitude of the impact may depend on application properties, e.g. size or age. Further research is needed to understand the relationship between software metrics and energy efficiency.
Original language | English |
---|---|
Title of host publication | ICT4S2018. 5th International Conference on Information and Communication Technology for Sustainability |
Subtitle of host publication | [Proceedings] |
Editors | Birgit Penzenstadler, Steve Easterbrook, Colin Venters, Syed Ishtiaque Ahmed |
Place of Publication | Toronto, Canada |
Publisher | EasyChair |
Pages | 365-383 |
Number of pages | 19 |
DOIs | |
Publication status | Published - 2018 |
Event | 5th International Conference on Information and Communication Technology for Sustainability. ICT4S2018 - Toronto, Canada Duration: 15 May 2018 → 17 May 2018 Conference number: 5 |
Publication series
Name | EPiC Series in Computing |
---|---|
Publisher | Easychair |
Volume | 52 |
ISSN (Print) | 2398-7340 |
Conference
Conference | 5th International Conference on Information and Communication Technology for Sustainability. ICT4S2018 |
---|---|
Abbreviated title | ICT4S2018 |
Country/Territory | Canada |
City | Toronto |
Period | 15/05/18 → 17/05/18 |
Keywords
- Software Engineering
- sustainability
- energy efficiency
- Green IT
VU Research Profile
- Connected World
- Science for Sustainability