Energy-efficiency of programming languages

Summary

It does not really matter which programming language you use. There are other aspects that are much more important. Especially your runtime environment. For example, if you are using Java (or another language running on the JVM), optimize the JVM, choose a lightweight framework and optimize your database queries. in real-world scenarios. See also Optimization of Java Applications – CPU Usage, Memory Usage, Startup Time, Resource Efficiency.

Aspects to consider

Aspects to consider when comparing the energy-efficiency of programming languages

🔗 References

Kempen at al. (2024)

It's Not Easy Being Green: On the Energy Efficiency of Programming Languages

Discussions:

Green Coding Solutions

Energy Efficiency of programming languages - Revisiting Python in 2024 | green-coding.io

Pereira et al. (2017, 2021)

HPI clean-IT openXchange Live Talk – Energy efficiency of programming languages (João Saraiva)

What Are the Greenest Programming Languages? | by Kesk | Medium

Main issue with the study: theoretical benchmarks (cpu-bound) were used that are not representative for practice

Other Comparisons

Comparing the Energy Efficiency of WebAssembly and JavaScript in Web Applications on Android Mobile Devices (van Hasselt, Huijzendveld, Noort, de Ruijter, Islam, Malavolta 2022)