develooper Front page | perl.perl5.porters | Postings from February 2003

Test::Harness & _print_ml()

Thread Next
February 8, 2003 15:16
Test::Harness & _print_ml()
Message ID:

Test::Harness has the habit to print a string to the screen for
each test you run - the _print_ml("ok $curr/$max") line in the
anon sub assigned to $Handlers{test}. It's this line that's
responsible for the 'nnn/NNN' counter to show.

It doesn't seem a lot, but it does add up if you have 180k+ tests.

The test suite for Regexp::Common 2.107 takes about 155 wallclock
seconds to run on my computer. If I outcomment the call to _print_ml, 
the time to run drops to about 125 seconds, which isn't insignificant.

Can we have a way to disable this progress report, short of modifying
the code?


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About