You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Evgueni Brevnov (JIRA)" <ji...@apache.org> on 2007/08/20 12:35:32 UTC

[jira] Updated: (HARMONY-4549) [drlvm][jit][opt][perf]throwing/catching exceptions works slowly

     [ https://issues.apache.org/jira/browse/HARMONY-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Evgueni Brevnov updated HARMONY-4549:
-------------------------------------

    Attachment: throwopt.patch

New optimization (attached) gives ~15% improvement on the above test case.
Successfully passed 'build test' & specJBB2005 & jython on Windows2003 x86.

> [drlvm][jit][opt][perf]throwing/catching exceptions works slowly
> ----------------------------------------------------------------
>
>                 Key: HARMONY-4549
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4549
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Vladimir Strigun
>         Attachments: throwopt.patch
>
>
> The test below shows that exception throwing/catching operations works slower on Harmony in comparison win Sun. 
> Results of test execution:
> java client: 1200 msec
> java server: 1000 
> harmony server: 5700 msec
> Small test:
> public class TestExceptions {
>     public static void main(String[] args) {
>         //warmup VM first
>         tryRaiseExceptions(1);
>         long start = System.currentTimeMillis();
>         tryRaiseExceptions(1000000);
>         long res = System.currentTimeMillis() -start;
>         System.out.println("completed in "+res+" msec");
>     }
>     public static void tryRaiseExceptions(int n) {
>         for(int i=0; i<n; i++) 
>             try{
>                 throw new TException();
>             }catch(TException throwable){
>                 TException ts = Test2.test(throwable);
>             }
>     }
> }
> class Test2  {
>    public static TException test(TException thr) {
>        return thr;
>    }
> }
> class TException extends RuntimeException {}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.