[ https://issues.apache.org/jira/browse/NETBEANS-4746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17191189#comment-17191189 ]
Jaroslav Tulach commented on NETBEANS-4746: ------------------------------------------- Comments from: * [Jesse|http://mail-archives.apache.org/mod_mbox/netbeans-dev/202009.mbox/%3CCAPFHdOu6fxOm%3DsKdOb-brHf8D9PHYVwDWRsdn0LEjpknmu-Ksg%40mail.gmail.com%3E] - cold JVM is a problem * [Tim|http://mail-archives.apache.org/mod_mbox/netbeans-dev/202009.mbox/%3CCA%2BqecROFK1o1uNoPgUgW-_PKfP5Fouy4bJerLhOeNqdNmbsgtA%40mail.gmail.com%3E] - I/O is the problem for large projects Thank you guys. > Running test in Maven is slower than in Ant > ------------------------------------------- > > Key: NETBEANS-4746 > URL: https://issues.apache.org/jira/browse/NETBEANS-4746 > Project: NetBeans > Issue Type: Task > Components: projects - Maven > Affects Versions: 12.0 > Reporter: Jaroslav Tulach > Assignee: Jaroslav Tulach > Priority: Minor > Attachments: justtest.diff, preexec-6.patch > > > NetBeans users has just recently complained that Maven support is slower than > Ant - some even claimed they [rather maintain dual Ant script > support|http://mail-archives.apache.org/mod_mbox//netbeans-dev/202008.mbox/browser] > than wait for Maven to launch. I've created this issue to investigate the > problem. > First of all we need a sample project: [^justtest.diff] - apply it {{patch > -p1 <justtest.diff}} in an empty directory shall be enough. Then you can run > it with Maven: > {code:java} > $ time JAVA_HOME=~/bin/jdk-8/ mvn -quiet > -Dtest=com.mycompany.justtest.MainTest process-test-classes surefire:test > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running com.mycompany.justtest.MainTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec > Results :Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 > real 0m2,633s > user 0m6,986s > sys 0m0,257s > {code} > and you can also run it with Ant: > {code:java} > time JAVA_HOME=~/bin/jdk-8/ ant -q test-single > -Djavac.includes=com/mycompany/justtest/MainTest.java > -Dtest.includes=com/mycompany/justtest/MainTest.java > BUILD SUCCESSFUL > Total time: 1 second > real 0m1,899s > user 0m4,250s > sys 0m0,244s > {code} > 2.6s vs. 1.9s! Really? Is that the problem? Probably not, I guess the > difference is the integration into the IDE then. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- 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