Group
Extension

Matches 4

Tool-Bench ( N/NO/NOTBENH/Tool-Bench-0.003.tar.gz, NOTBENH, 2013; MetaCPAN )
Tool-Bench/lib/Tool/Bench/Report/JSON.pm ( view source; MetaCPAN )
Tool::Bench::Report::JSON;
{
  $Tool::Bench::Report::JSON::VERSION = '0.003';
}
use Mouse;
use JSON;
use List::Util qw{min max sum };
use Data::Dumper;

=head1 JSON 

Builds a json report as follows (
n_time max_time total_time avg_time total_runs name note times }; #this is kinda janky

   encode_json( [ map { my $item = $_;
                       my $x =
                       { (
               
Tool-Bench ( N/NO/NOTBENH/Tool-Bench-0.003.tar.gz, NOTBENH, 2013; MetaCPAN )
Tool-Bench/lib/Tool/Bench.pm ( view source; MetaCPAN )
format => 'Text'); # uses Tool::Bench::Report::Text
  $bench->report(format => 'JSON'); # uses Tool::Bench::Report::JSON

By using class names you can build your own report simply, see 
L<Tool::Bench:
Tool-Bench ( N/NO/NOTBENH/Tool-Bench-0.003.tar.gz, NOTBENH, 2013; MetaCPAN )
Tool-Bench/script/bench.pl ( view source; MetaCPAN )
' --file 't/01-works.t' --count 3 --format JSON

=head1 TODO

needs docs

=cut

die qx{perldoc $0} unless @ARGV;

my ($count,$format,$interp,$file) = (1,'JSON'); #supply defaults;
my $opt = GetOptions
Tool-Bench ( N/NO/NOTBENH/Tool-Bench-0.003.tar.gz, NOTBENH, 2013; MetaCPAN )
Tool-Bench/talk/ex3.pl ( view source; MetaCPAN )
=> sub{$naptime = rand(10)},
                               teardown => sub{$naptime = 1},
                             },
                 );
$bench->run(3);
print $bench->report(format => 'JSON'); 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.