Abstract
Code refactoring techniques that are used to improve the properties of the code such as readability, performance, maintenance are applied to the code depending on the type of coding. However, these techniques could increase energy consumption that this case can be considered as a hint for re-arranging them. This article includes an empirical experiment that investigates the effect of refactoring techniques energy consumption. C#, Java, and C++ are selected as experimental object-oriented languages. The individual effects of the five different code refactoring techniques are examined on similar applications coded with three different languages. The power consumption profiling tool namely Intel Power Gadget is used for measuring energy consumption of original and refactored codes. The findings of the analysis provide new insights into how a refactoring technique affects energy consumption with regard to the type of programming language.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.