59
Ranking programming languages by energy efficiency (2021)
(www.sciencedirect.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
It's a very heavily gamed benchmark. The most frequent issues I've seen are:
They've finally started labelling stupid submissions with "contentious" labels at least, but not when this study was done.
They provide the specific implementations used here: https://github.com/greensoftwarelab/Energy-Languages
I dislike the "I thought of something that may be an issue therefore just dismiss all of the work without thinking" approach.
I agree, but if you take away the hard numbers from this (which you should) all you're left with is what we all already knew from experience: fast languages are more energy efficient, C, Rust, Go, Java etc. are fast; Python, Ruby etc. are super slow.
It doesn't add anything at all.
Well... No. You're reading the title. Read the document.
"We all know" is the gateway to ignorance. You need to test common knowledge to see if it's really true. Just assuming it is isn't knowledge, it's guessing.
Second - it's not always true:
Thirdly - they also did testing of memory usage to see if it was involved in energy usage.