You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Martin Entlicher (JIRA)" <ji...@apache.org> on 2018/11/07 15:56:00 UTC

[jira] [Commented] (NETBEANS-1593) Debugging slows down JavaScript execution 20x times

    [ https://issues.apache.org/jira/browse/NETBEANS-1593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16678428#comment-16678428 ] 

Martin Entlicher commented on NETBEANS-1593:
--------------------------------------------

It looks like {{ClassPrepareRequest}} adds a big overhead. When I do not submit any {{ClassPrepareRequest}}, each round takes around 2s. It's strange that the slow execution of more than 3s persists even after all requests are removed. It looks like a bug of JDK 11. I'll check the behavior on JDK 8 to have a comparison. In any case a performance degradation caused by (not being hit) {{ClassPrepareRequest}} from 2s to more than 3s per iteration looks like too much to me.

> Debugging slows down JavaScript execution 20x times
> ---------------------------------------------------
>
>                 Key: NETBEANS-1593
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1593
>             Project: NetBeans
>          Issue Type: Bug
>          Components: debugger - Java
>    Affects Versions: 10.0
>            Reporter: Jaroslav Tulach
>            Assignee: Martin Entlicher
>            Priority: Major
>
> While working on [PR-4|https://github.com/graalvm/graal-js-jdk11-maven-demo/pull/4] I realized that Truffle debugger support in NetBeans slows down execution 20x times. Without debugger the benchmark can execute in 150ms. With debugger it takes more than 3s. At current state the great Truffle debugging feature is not suitable for a demo.
> To reproduce, you need:
>  * NetBeans 10 VC2
>  * JDK11
>  * [graal-js-jdk11-maven-demo|https://github.com/graalvm/graal-js-jdk11-maven-demo] at revision 2f851ca6d922
> Then you can debug the {{AppTest}} unit test and put a breakpoint to calls to {{eval}}, etc. Once the breakpoint is hit, remove it and continue. The rest of the execution will be slow - e.g. take more than 3s for each round.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists