You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Rebriy (JIRA)" <ji...@apache.org> on 2008/02/05 12:56:09 UTC

[jira] Commented: (HARMONY-4555) [drlvm][thread][perf]Thread.currentThread() works slowly

    [ https://issues.apache.org/jira/browse/HARMONY-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565710#action_12565710 ] 

Pavel Rebriy commented on HARMONY-4555:
---------------------------------------

I've investigated assumption to create Thread.currentThread() helper on VMMagic. The results are below.

> [drlvm][thread][perf]Thread.currentThread() works slowly
> --------------------------------------------------------
>
>                 Key: HARMONY-4555
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4555
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Vladimir Strigun
>
> The test below shows that Thread.currentThread() method significantly slower in comparison win Sun. 
> I believe implementation of method through vmmagic could singnificanlty improve the situation.
> Results of test execution:
> java client: 200 msec
> java server: 20 
> harmony server: 5800 msec
> Small test:
> public class CurrentThreadTest {
>     public static void main(String[] args) {
>         long st = System.currentTimeMillis();
>         for(int i=0; i< 100000000; i++) {
>             Thread.currentThread();
>         }
>         long res = System.currentTimeMillis()-st;
>         System.out.println("res="+res);
>     }
> }

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