Debian Codegraph @

xt/alltest.t

raw symbols SCIP
1 #! /usr/bin/env perl
2
3 eval "use Test::Aggregate::Nested";
4
5 if ($@) {
6 use Test::More;
7 plan skip_all => "Test::Aggregate::Nested required for testing aggregated";
8 }
9
10 use Data::DPath;
11 use Data::Dumper;
12 use Benchmark ':all', ':hireswallclock';
13
14 local $Data::DPath::USE_SAFE = 0;
15
16 BEGIN {
17 print "TAP Version 13\n";
18 }
19
20 #DB::enable_profile();
21
22 my $tests = Test::Aggregate::Nested->new
23 ({
24 dirs => 't/',
25 });
26
27 diag "Running benchmark. Can take some time ...";
28 my $count = 1;
29 my $t = timeit ($count, sub { $tests->run });
30 my $n = $t->[5];
31 my $throughput = $n / $t->[0];
32 print " ---\n";
33 print " benchmark:\n";
34 print " timestr: ".timestr($t), "\n";
35 print " wallclock: $t->[0]\n";
36 print " usr: $t->[1]\n";
37 print " sys: $t->[2]\n";
38 print " throughput: $throughput\n";
39 print " ...\n";