harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-4552) [drlvm][jit][perf]instanceof operation works slowly in server mode
Date Fri, 27 Jul 2007 08:47:19 GMT

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

Mikhail Fursov reassigned HARMONY-4552:
---------------------------------------

    Assignee: Mikhail Fursov

> [drlvm][jit][perf]instanceof operation works slowly in server mode
> ------------------------------------------------------------------
>
>                 Key: HARMONY-4552
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4552
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Vladimir Strigun
>            Assignee: Mikhail Fursov
>
> The test below shows that instanceof significantly slower in comparison win Sun. 
> Results of test execution:
> java client: 2500 msec
> java server: 31 msec 
> harmony server: 4000 msec
> Small test:
> public class Test {
>     public static void main(String[] args) {
>         runTest(1000, new String());
>         long start = System.currentTimeMillis();
>         runTest(1000000000, new String());
>         long end = System.currentTimeMillis() - start;
>         System.out.println("completed in "+end);
>     }
>     public static void runTest(int num, Object obj) {
>         for(int i=0; i<num; i++) {
>             if(obj instanceof String){} 
>         }
>     }
> }

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


Mime
View raw message