Return-Path: X-Original-To: apmail-groovy-notifications-archive@minotaur.apache.org Delivered-To: apmail-groovy-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08AFF1867A for ; Sat, 18 Jul 2015 23:21:13 +0000 (UTC) Received: (qmail 88439 invoked by uid 500); 18 Jul 2015 23:21:13 -0000 Delivered-To: apmail-groovy-notifications-archive@groovy.apache.org Received: (qmail 88411 invoked by uid 500); 18 Jul 2015 23:21:12 -0000 Mailing-List: contact notifications-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.incubator.apache.org Delivered-To: mailing list notifications@groovy.incubator.apache.org Received: (qmail 88402 invoked by uid 99); 18 Jul 2015 23:21:12 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jul 2015 23:21:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8645AD5B20 for ; Sat, 18 Jul 2015 23:21:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.226 X-Spam-Level: X-Spam-Status: No, score=-0.226 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.227, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id cQoEELLFyZeA for ; Sat, 18 Jul 2015 23:21:05 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 0851A2164D for ; Sat, 18 Jul 2015 23:21:05 +0000 (UTC) Received: (qmail 88383 invoked by uid 99); 18 Jul 2015 23:21:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jul 2015 23:21:04 +0000 Date: Sat, 18 Jul 2015 23:21:04 +0000 (UTC) From: "Rahul Somasunderam (JIRA)" To: notifications@groovy.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (GROOVY-7508) Groovy performance for calling java methods too slow in linked example MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)