Parallel speedup: CPAN::Reporter

Andy Armstrong andy at hexten.net
Thu Nov 15 20:33:50 EST 2007


I've added a little hack to TH 3.02 - the TEST_OPTIONS environment  
variable which allows some TAP::Harness options to be set in a way  
that legacy tests using Test::Harness will understand. Using it to  
enable parallel testing yields a useful speedup for CPAN::Reporter's  
test suite:

$ time make test
[snip]
Files=28, Tests=1470, 171 wallclock secs ( 0.33 usr  0.12 sys + 129.33  
cusr 30.27 csys = 160.05 CPU)
Result: PASS

real	2m51.040s
user	2m9.773s
sys	0m30.431s

$ time HARNESS_OPTIONS=j9 make test
[snip]
Files=28, Tests=1470, 93 wallclock secs ( 0.32 usr  0.15 sys + 119.62  
cusr 30.99 csys = 151.08 CPU)
Result: PASS

real	1m33.126s
user	2m0.026s
sys	0m31.170s


-- 
Andy Armstrong, Hexten






More information about the tapx-dev mailing list