![](/static/253f0d9/assets/icons/icon-96x96.png)
![](https://lemmy.ml/pictrs/image/c0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png)
Quite 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.