Jaroslav Tulach created NETBEANS-1593:
-----------------------------------------

             Summary: 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
            Reporter: Jaroslav Tulach


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