PerlStone2015/18compiling.pm

filter: Statementstmt 60.0% 12 / 20 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 51.7% 15 / 29 CC 3 SCAR 18.7
CC
3
Cov
50%
main
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« PerlStone2015/17concurrency.pm ↑ Summary PerlStone2015/19commandline.pm »
1 package Benchmark::Perl::Formance::Plugin::PerlStone2015::18compiling;
2 1 our $AUTHORITY = 'cpan:SCHWIGON';
3 # ABSTRACT: benchmark - perl 18 - compiling
4 1 $Benchmark::Perl::Formance::Plugin::PerlStone2015::18compiling::VERSION = '0.002';
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 #############################################################
9 # #
10 # Benchmark Code ahead - Don't touch without strong reason! #
11 # #
12 #############################################################
13  
14 1 ▶use Benchmark ':hireswallclock';
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 sub main
17 0 ▶{
Subroutine main: not called CC=3 SCAR=24.8
Pod undocumented
18 0 my ($options) = @_;
19  
20 0 my $results;
21 0 eval {
22 0 $results = {
23 };
24 };
25  
26 0 ▶ if ($@) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) 0 0 0
27 0 ▶ warn $@ if $options->{verbose};
Branch: 1 branch
BranchTrueFalseTotal
if $options->{"verbose"} 0 0 0
28 0 $results = { failed => $@ };
29 }
30  
31 0 return $results;
32 }
33  
34 1 1;
35  
36 __END__
« PerlStone2015/17concurrency.pm ↑ Summary PerlStone2015/19commandline.pm »