mlsanityData to 14 Oct 2026

Who Wins the Race? (R Vs Python) - An Exploratory Study on Energy Consumption of Machine Learning Algorithms

arXiv 2508.17344 ↗First posted 24 Aug 2025cs.SE cs.LG cs.PFcited by 0

Not on the map. Why?

Abstract (arXiv)

The utilization of Machine Learning (ML) in contemporary software systems is extensive and continually expanding. However, its usage is energy-intensive, contributing to increased carbon emissions and demanding significant resources. While numerous studies examine the performance and accuracy of ML, only a limited few focus on its environmental aspects, particularly energy consumption. In addition, despite emerging efforts to compare energy consumption across various programming languages for specific algorithms and tasks, there remains a gap specifically in comparing these languages for ML-based tasks. This paper aims to raise awareness of the energy costs associated with employing different programming languages for ML model training and inference. Through this empirical study, we measure and compare the energy consumption along with run-time performance of five regression and five classification tasks implemented in Python and R, the two most popular programming languages in this context. Our study results reveal a statistically significant difference in costs between the two languages in 95% of the cases examined. Furthermore, our analysis demonstrates that the choice of programming language can influence energy efficiency significantly, up to 99.16% during model training and up to 99.8% during inferences, for a given ML task.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 7 of its 65 references that are in the map. First posted on arXiv 24 Aug 2025.

Builds on

7 of 65 references.

References · 7

  1. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  2. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,254
  3. 2016Designing Energy-Efficient Convolutional Neural Networks using Energy-Aware Pruningcited by 134
  4. 2022Data-Centric Green AI: An Exploratory Empirical Studycited by 25
  5. 2023Energy Efficiency of Training Neural Network Architectures: An Empirical Studycited by 15
  6. 2020Verified Instruction-Level Energy Consumption Measurement for NVIDIA GPUscited by 10
  7. 2016Energy-Efficient ConvNets Through Approximate Computingcited by 7

Built on by

Not cited yet.