3 ms·
Go is AOT compiled, thus many many optimizations are not possible there. Also, 3x slower than C is a baseless claim for both; at least for Java, for comparable
by kaba0 6y ago
Go is AOT compiled, thus many many optimizations are not possible there.
Also, 3x slower than C is a baseless claim for both; at least for Java, for comparable, big code sizes, Java will easily win, because mallocs are expensive, and arenas, pools whatevers are poor man’s GCs, with worse performance, and JIT compilation can do some really aggressive optimizations, as well as heap compression, etc.