You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Rahul Somasunderam (JIRA)" <ji...@apache.org> on 2015/07/19 01:21:04 UTC
[jira] [Created] (GROOVY-7508) Groovy performance for calling java
methods too slow in linked example
Rahul Somasunderam created GROOVY-7508:
------------------------------------------
Summary: Groovy performance for calling java methods too slow in linked example
Key: GROOVY-7508
URL: https://issues.apache.org/jira/browse/GROOVY-7508
Project: Groovy
Issue Type: Bug
Affects Versions: 2.4.0
Environment: Mac OS 10.9, Oracle Java 8u45
Reporter: Rahul Somasunderam
I took an example from Mr Haki's blog and turned that into equivalent java and groovy code.
The groovy code runs several orders of magnitude slower.
I used gbench to benchmark the code. That takes care of warming up the JIT cache before actually comparing numbers.
The sample code is here - https://github.com/rahulsom/perfcomp
The forum discussion around it here - http://mail-archives.apache.org/mod_mbox/incubator-groovy-users/201507.mbox/%3CE1786ED1-D1EE-4157-9E11-1C1D217C8185@humana.com%3E
It would be nice to see solutions leveraging existing versions of groovy or a fix in newer groovy.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)