Finding Significant Differences in the Energy Consumption when Comparing Programming Languages and Programs

Authors
Publication date 2022
Host editors
  • C. Calero
  • A. Karvonen
  • E. Somova
  • J.P. Fernandes
  • A.-K. Peters
  • J. Cunha
Book title 2022 International Conference on ICT for Sustainability
Book subtitle ICT4S 2022 : 13-17 June 2022, Plovdiv, Bulgaria : proceedings
ISBN
  • 9781665482875
ISBN (electronic)
  • 9781665482868
Event 8th International Conference on Information and Communication Technologies (ICT) for Sustainability, ICT4S 2022
Pages (from-to) 1-12
Number of pages 12
Publisher Los Alamitos, CA: IEEE Computer Society, Conference Publishing Services
Organisations
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
Abstract

The EU Green Deal mirrors the societal concern regarding climate change. In the software industry this means reducing the energy consumption of a program. This can be done by looking both at the hardware and the software used. We take a software approach and focus on the programming language choices and how a computer program is written. The programming languages we investigate are Java, JavaScript, Python, PHP, Ruby, C, C++ and C#. We compare programs from The Computer Language Benchmarks Game and these programs are divided in groups that solve the same problem.We find that the choice of programming language and the way of writing your program influences the energy consumption. The programming languages that consume the least amount of energy over all the problems are C and C++, albeit these programming languages consume more energy when compilation flags are minimized. However, in some cases we could not prove that there was a difference in the energy consumption. We also find that the hardware used to run the programs has an influence on the energy consumption. We find that the runtime of a program correlates with the energy consumption, but a shorter runtime does not necessarily result in a lower energy consumption.

Document type Conference contribution
Language English
Published at https://doi.org/10.1109/ICT4S55073.2022.00012
Other links https://www.proceedings.com/64928.html https://www.scopus.com/pages/publications/85136233806
Permalink to this page
Back