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

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

I've reproduced a debugger-induced performance regression on standard JDK (JDK 
8 as well as JDK 11) in memory-intensive applications. Such a performance 
regression is not observable on GraalVM.

When running with Graal compiler, pure debug, or suspend in Java code and 
resume, run almost as fast as a pure run.
Step into eval, which ends in a script causes a dramatic performance regression 
after the suspended execution in the script is resumed.
As a workaround, the new action with G-like icon called "Toggle Pause in 
GraalVM Script" can be used as a faster version of step into user script and 
this action does not have the ugly side-effect of the dramatic performance 
regression.
 

> 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to