Grupo Alarcos · Journal article · 2024
Programming languages ranking based on energy measurements
Alberto Gordillo Rivero, Coral Calero Muñoz, María Ángeles Moraga de la Rubia, Félix Óscar García Rubio, João Paulo Fernandes, Rui Abreu, João Saraiva
Software is developed using programming languages whose choice is made based on a wide range of criteria, but it should be noted that the programming language selected can affect the quality of the software product. In this paper, we focus on analysing the differences in energy consumption when running certain algorithms that have been developed using different programming languages. Therefore, we focus on the software quality from the perspective of greenability, in concrete in the aspects related to energy efficiency. For this purpose, this study has conducted an empirical investigation about the most suitable programming languages from an energy efficiency perspective using a hardware-based consumption measurement instrument that obtains real data about energy consumption. The study builds upon a previous study in which energy efficiency of PL were ranked using a software-based approach where the energy consumption is an estimation. As a result, no significant differences are obtained between two approaches, in terms of ranking the PL. However, if it is required to have a more realistic knowledge of consumption, it is necessary to use hardware approaches. Furthermore, the hardware approach provides information about the energy consumption of specific DUT hardware components, such as, HDD, graphics card, and processor, and a ranking for each of component is elaborated. This can provide useful information to make a more informed decision on the choice of a PL, depending on several factors, such as the type of algorithms to be implemented, or the effects on power consumption not only in overall, but also depending on specific DUT hardware components.
On the same topic
- 2025 Does the compiler or interpreter version influence the energy consumption of programming languages?
- 2021 A process for analysing the energy efficiency of software
- 2021 Does maintainability relate to the energy consumption of software? A case study
- 2024 Development and evaluation of a reference measurement model for assessing the resource and energy efficiency o