Empirical Evaluation of the Energy Impact of Refactoring Code Smells

Roberto Verdecchia, Rene' Aparicio Saez, Giuseppe Procaccianti, Patricia Lago

Research output: Chapter in Book / Report / Conference proceedingConference contributionAcademicpeer-review

586 Downloads (Pure)

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 languageEnglish
Title of host publicationICT4S2018. 5th International Conference on Information and Communication Technology for Sustainability
Subtitle of host publicationProceedings
EditorsBirgit Penzenstadler, Steve Easterbrook, Colin Venters, Syed Ishtiaque Ahmed
Place of PublicationToronto, Canada
PublisherEasyChair
Pages365-383
Number of pages19
DOIs
Publication statusPublished - May 2018
Event5th International Conference on Information and Communication Technology for Sustainability. ICT4S2018 - Toronto, Canada
Duration: 15 May 201817 May 2018
Conference number: 5

Publication series

NameEPiC Series in Computing
PublisherEasychair
Volume52
ISSN (Print)2398-7340

Conference

Conference5th International Conference on Information and Communication Technology for Sustainability. ICT4S2018
Abbreviated titleICT4S2018
CountryCanada
CityToronto
Period15/05/1817/05/18

Keywords

  • Software Engineering
  • sustainability
  • energy efficiency
  • Green IT

VU Research Profile

  • Connected World
  • Science for Sustainability

Fingerprint Dive into the research topics of 'Empirical Evaluation of the Energy Impact of Refactoring Code Smells'. Together they form a unique fingerprint.

Cite this