3 ms·
There's this classic paper from Google that runs an optimisation competition on the same program written in C++, Java, Scala and Go: https://days2011.scala-lan
by repolfx 8y ago
There's this classic paper from Google that runs an optimisation competition on the same program written in C++, Java, Scala and Go:
https://days2011.scala-lang.org/sites/days2011/files/ws3-1-Hundt.pdf https://days2011.scala-lang.org/sites/days2011/files/ws3-1-H...
- physguy1123 8y agoThis is great benchmark of the fundamental problems with say Java - the code itself is fairly simple and the JITs probably generate optimal code given their constraints, but the performance problems clearly show that the GC and pointer chasing really hinder your performance. If you add in cases where simd, software prefetching, or memory access batching help, the difference will only grow.