groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Somasunderam (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-7508) Groovy performance for calling java methods too slow in linked example
Date Sat, 18 Jul 2015 23:21:04 GMT
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)

Mime
View raw message