[Koha-bugs] [Bug 18979] Speed up 'valid-templates.t' tests

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jul 26 15:34:40 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18979

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |veron at veron.ch

--- Comment #2 from Marc Véron <veron at veron.ch> ---
Testing on top of Bug 18055

Testing without patch:
Files=1, Tests=838, 40 wallclock secs ( 0.17 usr  0.01 sys + 28.71 cusr  0.73
csys = 29.62 CPU)

With patch:
 Can't locate Parallel/ForkManager.pm (...) you may need to install the
Parallel::ForkManager module
-> Installing Parallel::ForkManager

Can't locate Sys/CPU.pm
->Installing Sys::CPU


Re-testing without patch (4 times):
Files=1, Tests=838, 33 wallclock secs ( 0.15 usr  0.02 sys + 28.68 cusr  0.38
csys = 29.23 CPU)

Files=1, Tests=838, 30 wallclock secs ( 0.14 usr  0.01 sys + 28.08 cusr  0.32
csys = 28.55 CPU)

Files=1, Tests=838, 30 wallclock secs ( 0.14 usr  0.01 sys + 28.61 cusr  0.22
csys = 28.98 CPU)

Files=1, Tests=838, 31 wallclock secs ( 0.15 usr  0.01 sys + 28.34 cusr  0.27
csys = 28.77 CPU)


Testing with patch (4 times):
Files=1, Tests=838, 36 wallclock secs ( 0.06 usr  0.00 sys + 31.04 cusr  0.60
csys = 31.70 CPU)

Files=1, Tests=838, 34 wallclock secs ( 0.07 usr  0.00 sys + 29.98 cusr  0.53
csys = 30.58 CPU)

Files=1, Tests=838, 32 wallclock secs ( 0.06 usr  0.00 sys + 29.53 cusr  0.65
csys = 30.24 CPU)

Files=1, Tests=838, 32 wallclock secs ( 0.05 usr  0.01 sys + 29.74 cusr  0.53
csys = 30.33 CPU)


Result on my vm: 
It seems that installing Parallel::ForkManager and Sys::CPU speeded up
xt/author/valid-templates.t
(31 - 33 wallclock sec instead of 40 sec, without patch)

With patch, xt/author/valid-templates.t was comparable or slower 
(32 - 36 wallclock sec, with patch)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list