| blib/lib/Benchmark/MCE.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 72 | 89 | 80.9 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 302 | 0 | 0 | 2 | $physical and $physical > 1 |
| 304 | 0 | 2 | 0 | $cores and $cores != $ncpu |
| 372 | 19 | 19 | 132 | $opt->{'threads'} && $opt2->{'threads'} |
| 391 | 106 | 22 | 100 | $stats1->{$bench}{'times'} and $stats2->{$bench}{'times'} |
| 441 | 19 | 19 | 180 | $opt->{'bench'} and %{$opt->{'bench'};} |
| 458 | 45 | 1 | 598 | scalar @$arr > 2 and $arr->[2] |
| 1 | 0 | 598 | scalar @$arr > 2 and $arr->[2] and $arr->[2] > 0 | |
| 459 | 44 | 25 | 575 | scalar @$arr > 1 and defined $arr->[1] |
| 475 | 568 | 20 | 30 | $opt->{'filter'} and not $opt->{'filter'}->($opt, $bench, $benchmarks->{$bench}) |
| 476 | 483 | 84 | 21 | $opt->{'exclude'} and $bench =~ /$opt->{'exclude'}/ |
| 477 | 75 | 89 | 403 | $opt->{'include'} and not $bench =~ /$opt->{'include'}/ |
| 481 | 39 | 0 | 107 | $benchmarks->{$bench}[2] && $time |
| 489 | 65 | 38 | 43 | not $opt->{'quick'} and $res ne "Pass" |
| 507 | 61 | 64 | 39 | scalar @bench_copy > 3 and not $opt->{'quick'} |
| 580 | 8 | 0 | 2 | $opt->{'stdev'} and $avg |
| line | l | !l | condition |
|---|---|---|---|
| 283 | 2 | 37 | $ncpu ||= 1 |
| 289 | 2 | 0 | System::CPU::get_name() || '' |
| 290 | 2 | 0 | System::CPU::get_arch() || '' |
| 439 | 1 | 119 | $opt->{'iterations'} || 1 |
| 453 | 108 | 34 | $opt->{'threads'} ||= 1 |
| 454 | 1 | 141 | $opt->{'scale'} ||= 1 |
| 531 | 5 | 41 | shift() // 1 |
| 566 | 5 | 0 | $stats->{$bench}{'fail'} || 0 |
| 623 | 538 | 956 | shift() || 20 |
| 650 | 19 | 0 | eval { do { $caller->VERSION } } || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 288 | 0 | 0 | 0 | $info->{'distro'} || $info->{'os'} || $^O |
| 315 | 14 | 45 | 0 | $opt->{'threads'} || system_identity(1) |
| 372 | 38 | 19 | 113 | not $opt->{'threads'} && $opt2->{'threads'} or $opt->{'threads'} == $opt2->{'threads'} |
| 439 | 98 | 120 | 0 | $opt->{'iter'} ||= $opt->{'iterations'} || 1 |
| 440 | 1 | 1 | 19 | $opt->{'benchmarks'} || $opt->{'extra_bench'} |
| 197 | 2 | 19 | $opt->{'bench'} ||= $opt->{'benchmarks'} || $opt->{'extra_bench'} | |
| 456 | 67 | 2 | 73 | $opt->{'quick'} or $opt->{'no_mce'} |
| 536 | 15 | 0 | 12 | !defined($benchmark->[1]) || $out eq $benchmark->[1] |