Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 68429 invoked from network); 11 Feb 2008 06:06:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2008 06:06:31 -0000 Received: (qmail 64661 invoked by uid 500); 11 Feb 2008 06:06:25 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 64646 invoked by uid 500); 11 Feb 2008 06:06:25 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 64637 invoked by uid 99); 11 Feb 2008 06:06:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Feb 2008 22:06:24 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 06:05:48 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3B16371406C for ; Sun, 10 Feb 2008 22:06:08 -0800 (PST) Message-ID: <16222225.1202709968239.JavaMail.jira@brutus> Date: Sun, 10 Feb 2008 22:06:08 -0800 (PST) From: "Alexey Varlamov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-5480) [drlvm][jit] Some of java.lang.Math methods could be implemented by api_magics In-Reply-To: <31974095.1202565907866.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Varlamov reassigned HARMONY-5480: ---------------------------------------- Assignee: Alexey Varlamov > [drlvm][jit] Some of java.lang.Math methods could be implemented by api_magics > ------------------------------------------------------------------------------ > > Key: HARMONY-5480 > URL: https://issues.apache.org/jira/browse/HARMONY-5480 > Project: Harmony > Issue Type: Improvement > Components: DRLVM > Reporter: Evgeniya Maenkova > Assignee: Alexey Varlamov > Attachments: MathTest.java, vm.math.patch2 > > > The patch gives >7x speedup on my laptop on test mentioned below: > package math; > public class MathTest { > static void f() { > Math.abs(-123987.1236d); > Math.asin(0.7); > Math.acos(0.7); > Math.log(123.123); > Math.log10(123.123); > Math.log1p(123.123); > Math.sin(12312.123); > Math.cos(12312.123); > Math.sqrt(234234.234234); > Math.tan(234234.12342134); > Math.atan(2347.234); > Math.atan2(231.123, 0); > Math.abs(-123.1231123f); > } > public static void main(String[] args) { > System.out.println("Warmup started...."); > for (int i = 0; i < 2500 * 2500; i ++) { > f(); > } > for (int i = 0; i < 250 * 2500; i ++) { > f(); > } > System.out.println("Warmup ended...."); > long start = System.currentTimeMillis(); > for (int i = 0; i < 2500 * 2500; i ++) { > f(); > } > System.out.println("floor result: " + (System.currentTimeMillis() - start)); > } > } > Administrator@EGMAENKO-MOBL /cygdrive/c/ecl_311_ws/MicroBenches/bin1 > $ /cygdrive/c/home_test/temp_builds/egm_r618602_Mj_Mc/bin/java -XX:jit.arg.Math > _as_magic=true -Xem:server math.MathTest > Warmup started.... > Warmup ended.... > floor result: 4875 > Administrator@EGMAENKO-MOBL /cygdrive/c/ecl_311_ws/MicroBenches/bin1 > $ /cygdrive/c/home_test/temp_builds/egm_r618602_Mj_Mc/bin/java -XX:jit.arg.Math > _as_magic=false -Xem:server math.MathTest > Warmup started.... > Warmup ended.... > floor result: 34141 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.