Branch Coverage

blib/lib/Benchmark/MCE.pm
Criterion Covered Total %
branch 158 168 94.0


line true false branch
284 37 2 if @_
286 0 2 if $^O =~ /android/
291 2 0 if $arch
296 0 2 $Benchmark::MCE::Config{'usethreads'} ? :
0 2 $Benchmark::MCE::Config{'usemultiplicity'} ? :
302 2 0 if $physical and $physical > 1
303 2 0 if $cores
304 0 2 if $cores and $cores != $ncpu
305 2 0 if @extra
316 18 41 unless $cpus > 1
328 42 100 $opt->{'threads'} > 1 ? :
330 4 138 $opt->{'no_mce'} ? :
335 138 4 unless $opt->{'no_mce'}
337 1 141 if ($opt->{'duration'}) { }
352 6 138 if $opt->{'iter'} > 1
357 3 96 if $opt->{'iter'} > 1
372 57 113 if not $opt->{'threads'} && $opt2->{'threads'} or $opt->{'threads'} == $opt2->{'threads'}
375 20 93 if $opt->{'threads'} > $opt2->{'threads'}
377 19 94 if $opt->{'scale'} != $opt2->{'scale'}
380 54 40 $opt->{'time'} ? :
382 54 40 $opt->{'time'} ? :
390 56 228 if $bench eq "_total"
391 128 100 unless $stats1->{$bench}{'times'} and $stats2->{$bench}{'times'}
395 81 19 if $res2[2]
396 81 19 if $res2[2]
397 81 19 if $scal{$bench}
398 81 19 if @perf
403 38 56 unless @perf
408 25 31 if $cnt > 1
409 1 55 if $opt->{'scale'} > 1
410 2 54 if $opt->{'iter'} > 1
412 54 2 if $opt->{'time'}
413 54 2 $opt->{'time'} ? :
414 2 54 $opt->{'iter'} > 1 ? :
415 2 54 $opt->{'iter'} > 1 ? :
416 2 54 $opt->{'iter'} > 1 ? :
419 19 37 $outliers ? :
420 19 37 $outliers ? :
441 38 180 unless $opt->{'bench'} and %{$opt->{'bench'};}
443 31 651 unless (ref $opt->{'bench'}{$b})
445 19 12 if $@
449 24 639 if ref $opt->{'bench'}{$b} eq "CODE"
451 19 644 if ref $opt->{'bench'}{$b} ne "ARRAY"
455 67 75 if $opt->{'quick'}
456 69 73 if $opt->{'quick'} or $opt->{'no_mce'}
458 1 598 unless scalar @$arr > 2 and $arr->[2] and $arr->[2] > 0
459 69 575 unless scalar @$arr > 1 and defined $arr->[1]
461 91 51 $opt->{'time'} ? :
462 4 138 if $opt->{'no_mce'}
469 93 52 $opt->{'time'} ? :
471 52 93 unless $opt->{'no_check'}
475 30 588 if $opt->{'filter'} and not $opt->{'filter'}->($opt, $bench, $benchmarks->{$bench})
476 21 567 if $opt->{'exclude'} and $bench =~ /$opt->{'exclude'}/
477 403 164 if $opt->{'include'} and not $bench =~ /$opt->{'include'}/
481 107 39 $benchmarks->{$bench}[2] && $time ? :
488 111 35 $opt->{'time'} ? :
489 43 103 if not $opt->{'quick'} and $res ne "Pass"
491 43 103 unless $opt->{'no_check'}
493 1 145 if $opt->{'sleep'}
495 25 102 unless $i
498 81 21 $opt->{'time'} ? :
507 39 125 if scalar @bench_copy > 3 and not $opt->{'quick'}
508 9 155 if $opt->{'no_mce'}
522 128 51 if $_->[1] ne "Pass"
532 41 5 if $srand > 0
536 15 12 !defined($benchmark->[1]) || $out eq $benchmark->[1] ? :
544 2 1 $opt->{'time'} ? :
545 2 1 $opt->{'time'} ? :
547 0 3 $opt->{'threads'} > 1 ? :
552 1 2 if $opt->{'stdev'}
553 1 2 unless $opt->{'no_check'}
557 8 7 unless $stats->{$bench}{$display}
566 5 2 unless $opt->{'no_check'}
580 2 8 if ($opt->{'stdev'} and $avg)
590 57 529 unless @$arr
596 19 133 unless @$arr
612 580 247 if ($single) { }
613 542 38 unless $single * ($_ - $avg) > 2 * $stdev
615 209 38 unless abs $avg - $_ > 2 * $stdev
628 1 1 unless $QUIET
632 1640 67 unless $QUIET
636 65 10 $MONO_CLOCK ? :
647 0 29 unless my $caller = caller $i
648 19 10 if ($caller eq "Benchmark::DKbench")