I tested simple a simple Go program with a for loop counting from 1 to several millions and making simple integer calculations and the same with Java. Java was 4-5x faster than Go.
It looks like HotSpot VM is preety much optimized and that Go still needs a lot of compiler optimizations...
I know that this test isn´t representative and complete, but it is a good smoke test for first comparison. C and Go should be faster than Java in pure integer numerics (or at least as fast as Java)...
Why should C and Go (AOT compiled) be faster than Java for pure integer numerics?
For long-running simple tight loops of numerics, I'd assume HotSpot would be faster.
It looks like HotSpot VM is preety much optimized and that Go still needs a lot of compiler optimizations...
I know that this test isn´t representative and complete, but it is a good smoke test for first comparison. C and Go should be faster than Java in pure integer numerics (or at least as fast as Java)...