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

Test::Harness & _print_ml()

Thread Next
From:
Abigail
Date:
February 8, 2003 15:16
Subject:
Test::Harness & _print_ml()
Message ID:
20030208231554.GE2872@abigail.nl

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?



Abigail

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About