mr47@kbin.socialtoProgrammer Humor@lemmy.ml•Ranking of the most energy-efficient programming languages
14·
1 year agoQuite a few unexpected results here…
- I’m surprised the C binary is not the smallest, and it’s outdone by Pascal, of all languages.
- The speed/energy difference between Java and C# (almost a factor of 2 in favor of Java).
- The relatively good performance of JavaScript compared to other loosely typed multi-paradigm scripting languages.
- The difference between C# and F#. That’s actually a good reason to question the accuracy of these tests and results.
I haven’t looked into the details of the actual code, but I would expect the compiler optimizations and JIT to figure it all out and end up with very similar native code. Especially since both languages are mature and had enough time to reach such goals. But it’s quite possible my assumptions are incorrect.