4 ms·
A quick look at the language benchmark game, and Go varies between 7x slower than Java and approx. the same speed as Java (varies by test): http://benchmarksgam
by trailfox 13y ago
A quick look at the language benchmark game, and Go varies between 7x slower than Java and approx. the same speed as Java (varies by test):
http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?test=all&lang=go&lang2=java http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...
I fail to see how Go being slower than Java relates to C being faster than Java.
- smegel 13y agoWell given both C and Go are native compiled languages, I would think C is a realistic (if distant) goal for Go performance, at least for algorithmic stuff where you're not bouncing in and out of the runtime. I was commenting on how far it has to go.
- trailfox 13y agoOk, I see. Technically a JIT compiles to native code too, so for a long running app there shouldn't be much difference. Both Go and Java are garbage collected, but the JVM has the more sophisticated GC.