The topic of ranking programming languages by energy efficiency has been discussed before on Hacker News. Here is the paper previously discussed which has been updated in 2021:
Energy Efficiency across Programming Languages: https://sites.google.com/view/energy-efficiency-languages
I'm glad to see new(ish) languages take performance seriously: Rust, Go, Nim, Crystal, Julia. Some of the most popular languages (we all know which ones) are the least performative. But they make life easier for developers, or as programmers love to say 'more productive'. On the other hand, when it's programmers who are on the receiving end of slow, resource intensive apps, they'll complain loudly.
When performance is an issue in running programs, a common response is: hardware is cheap, just add another energy-guzzling server or use a more powerful computer.
This attitude is embarrassing when you consider that in every other industry there is a push for reduced resource usage and lower energy consumption. I don't think it's controversial to say a typed, compiled language gives you good performance for free (and the reduced computing resources that implies).
Aside: When PHP 7 was released, Rasmus Lerdorf, the creator of PHP, said the performance improvements meant fewer servers, smaller memory use and reduced CPU activity - all of which equalled less power or electricity consumed. (And remember this is an interpreted language.)
When you consider the millions of servers in use, that additional language efficiency adds up to a substantial saving in electricity use. You can watch a segment from his presentation below where he talks about this, including the calculations he made of potential CO2 savings:
Rasmus Lerdorf – "PHP in 2018" (extract from the 15 min mark): https://youtu.be/umxGUWYmiSw?t=15m16s