Java 7 Groovy twice as fast as Java 8 and 9
rjdkolb at gmail.com
Tue Feb 17 09:56:09 UTC 2015
Thanks very much.
Let me ask Aleksey first and see if my micro benchmark is at least sane.
I'll post his response.
(I realised my Java 9 was out of date. Build 48 returns similar results.)
This is a good one to ask Aleksey and other performance experts! You can
try the friends of jclarity list (disclaimer, I run jclarity) to get advice
from the industry or in OpenJDK I'd probably recommend posting to code
tools or the relevant hotspot mailing list.
On 17 February 2015 at 06:18, Richard Kolb <rjdkolb at gmail.com> 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
More information about the adoption-discuss