You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2014/09/12 19:46:07 UTC

[Bug 56978] New: Enabling "showoutput" for a JUnit task makes it dramatically slower

https://issues.apache.org/bugzilla/show_bug.cgi?id=56978

            Bug ID: 56978
           Summary: Enabling "showoutput" for a JUnit task makes it
                    dramatically slower
           Product: Ant
           Version: 1.9.4
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
          Assignee: notifications@ant.apache.org
          Reporter: andy.ja.lee@gmail.com

Created attachment 32015
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=32015&action=edit
JUnit Task

I have a JUnit test case that prints a considerable amount of text to standard
err/out (about 6 MB worth of logging).  If the the junit task is configured
with showoutput="true", the test takes much longer (about 14x longer) to run on
Windows only (the flag does not seem to significantly affect the speed of the
test on our OSX or Linux nodes).

Interestingly, setting printsummary="withOutAndErr" and showoutput="false" does
not seem to slow the test down even though it's outputting about the same
amount of text, so I don't think it's a problem with console or disk IO speeds.

I've attached what my JUnit task looks like (note that it uses the fork
option).

This is the performance I'm seeing on my Windows 7 machine:


With printsummary="withOutAndErr" showoutput="false":
BUILD SUCCESSFUL
Total time: 1 minute 3 seconds


With printsummary="yes" showoutput="true":
BUILD SUCCESSFUL
Total time: 14 minutes 30 seconds

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56978] Enabling "showoutput" for a JUnit task makes it dramatically slower

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56978

Andy Lee <an...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andy.ja.lee@gmail.com
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.