2 ms·
Are there benchmarks for those compilers? I ask because Go is quite competitive to Oracle JDK. http://benchmarksgame.alioth.debian.org/u64q/go.html http://benc
by geodel 10y ago
Are there benchmarks for those compilers? I ask because Go is quite competitive to Oracle JDK.
http://benchmarksgame.alioth.debian.org/u64q/go.html http://benchmarksgame.alioth.debian.org/u64q/go.html
- pjmlp 10y agoYes, but usually Java compilers still tend to win when the benchmark is done in such a way that the 2nd level JIT is allowed to do its work. Go usually wins in those benchmarks, where Java code is either interpreted or still compiled with the 1st level JIT. And as mentioned, this is only relevant with the reference compiler, gccgo is much better.
- igouy 10y ago> allowed to do its work < It's not like the programs are run with -Xint :-) It's not like a panacea -- https://arxiv.org/abs/1602.00602 https://arxiv.org/abs/1602.00602
- gribbly 10y ago>gccgo is much better. Actually I did a benchmark run not that long ago between Gccgo and Go with the latter winning most of the benchmarks, I believe this mainly has to do with Gccgo lacking escape analysis.