4 ms·
You're comparing Sun's Java 7, a mature mainstream, enterprisey language which has probably the compiler, virtual machine and GC most advanced in all of Compute
by lolcraft 13y ago
You're comparing Sun's Java 7, a mature mainstream, enterprisey language which has probably the compiler, virtual machine and GC most advanced in all of Computer Science's history, with a niche language that some Googlers hacked together. It would be too naive to expect Go to perform better than Java 7. However...
Notice that Go, compiled with the Plan 9 compilers, performs as well as Java in 7 of 11 tests and uses as much as 1/15 of its memory. All in all, not that bad.
- smegel 13y agoYour also comparing a native compiled language with an interpreted language (albeit with a very good JIT compiler). At some point of maturity, I would expect the native language to edge out Java, and when you look at the benchmarks that is generally what you see.
- burntsushi 13y agoExcept for Haskell, OCaml, Pascal and SBCL Lisp. Java is faster than all of those (on the shootout micro benchmarks), and I'd say all of them are quite mature. From what I can tell, on the Language Shootout, only C, C++ and Fortran beat Java. N.B. I think I only looked at benchmarks for x64 quad core.
- queensnake 13y agoOCaml is instructive, that's another compiled-but-GC'd language. Looking at them they're about the same. http://benchmarksgame.alioth.debian.org/u32/benchmark.php?test=all&lang=ocaml&lang2=go&data=u32 http://benchmarksgame.alioth.debian.org/u32/benchmark.php?te...