Scenario/LogDispatch/Startup.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary ScenarioR/LogDispatch/Startup.pm »
1 package Bencher::Scenario::LogDispatch::Startup;
2  
3 1 our $DATE = '2017-01-25'; # DATE
4 1 our $VERSION = '0.02'; # VERSION
5  
6 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 #our @modules = grep {!/\ALog::Dispatch::(XXX)\z/} do { require App::lcpan::Call; @{ App::lcpan::Call::call_lcpan_script(argv=>["modules", "--namespace", "Regexp::Common"])->[2] } }; # PRECOMPUTE
11 1 our @modules = qw(
12 Log::Dispatch::Base
13 Log::Dispatch::Dir
14 Log::Dispatch::File
15 Log::Dispatch::FileWriteRotate
16 Log::Dispatch::Null
17 Log::Dispatch::Perl
18 Log::Dispatch::Screen
19 Log::Dispatch::Screen::Color
20 );
21  
22 our $scenario = {
23 summary => 'Benchmark module startup overhead of some Log::Dispatch modules',
24 # minimum versions
25 modules => {
26 'Log::Dispatch::FileWriteRotate' => {version=>'0.04'},
27 },
28 module_startup => 1,
29  
30 participants => [
31 1 map { +{module=>$_} } @modules,
32 ],
33 };
34  
35 1 1;
36 # ABSTRACT: Benchmark module startup overhead of some Log::Dispatch modules
37  
38 __END__
↑ Summary ScenarioR/LogDispatch/Startup.pm »