How 27 programming languages differ in energy consumption
Briefly

A study from Portugal assessed energy consumption, execution time, and memory usage across 27 programming languages using 10 standard algorithmic problems from the Computer Language Benchmarks Game. The tests were conducted on an Ubuntu server with consistent metrics taken for reliability. C was found to be the fastest and most energy-efficient. Rust demonstrated superior energy efficiency for specific tasks, particularly DNA database scanning. The research illuminated that faster execution does not guarantee lower energy use, highlighting discrepancies in performance versus energy consumption.
The study evaluated 27 programming languages by running solutions to 10 standard algorithmic problems sourced from the Computer Language Benchmarks Game, assessing energy usage, speed, and memory.
C remains the fastest and most energy-efficient overall, with Rust outpacing others in energy efficiency for specific tasks, such as scanning DNA.
Performance varied depending on tasks; Fortran showed strong energy efficiency but slower execution times in comparison to top performers.
The researchers found execution speed and energy consumption do not always correlate, with some faster programs consuming more energy than slower counterparts.
Read at App Developer Magazine
[
|
]