Java 7 Groovy twice as fast as Java 8 and 9
cnewland at chrisnewland.com
Tue Feb 17 09:54:51 UTC 2015
I'll run this through JITWatch  later and see if there is anything
Have you considered that with 8 and 9 you're probably hitting tiered
compilation (disabled by default in 7) which means you're running on
"quick-and-dirty" C1 optimisation for part of your benchmark.
If your benchmark doesn't run for long enough for C2 to kick in then that
could be a simple reason.
On Tue, February 17, 2015 06:18, Richard Kolb wrote:
> Hello All,
> I've created my own micro beanchmarks with jmh.
> It's forked to here :
> Most of the benchmarks clearly show how performance is increasing except
> for Groovy.
> Perhaps my benchmark is wrong, but it looks like 8 and 9 are
> significantly slower than 7.
> Java 7 (build 1.7.0_60-b19):
> c.g.v.DynamicLanguages.groovy 665.826 ops/s
> Java 8 (build 1.8.0_31-b13):
> c.g.v.DynamicLanguages.groovy 366.274
> Java 9 (build 1.9.0-ea-b42) :
> c.g.v.DynamicLanguages.groovy 375.593 ops/s
> regards, Richard.
More information about the adoption-discuss