Today I read a paper benchmarking different programming languages according to the amount of energy they consume, and it blew me away:
- Ruby and Python consume more than twice what PHP does
Interpreted languages, which are so common in web development, are often far more energy intensive than their compiled counterparts. Java is the exception with only twice C's consumption.
I'm kind of surprised this is the first time someone thought about making this study, 2017 being relatively recent. I stumbled upon it by sheer luck, and no one ever mentions this performance indicator when talking about differences between programming languages.
Worse, I'm trusting web carbon footprint calculators less and less since they don't take into account this basic thing. There is probably an open source project to make around this paper to help the tech industry moves toward a greener future.