Acme-CPANModulesUtil-Bencher
view release on metacpan or search on metacpan
{
module => 'Text::ANSITable',
...
bench_code => sub {
my ($table) = @_;
my $t = Text::ANSITable->new(
use_utf8 => 0,
use_box_chars => 0,
use_color => 0,
columns => $table->[0],
border_style => 'Default::single_ascii',
);
$t->add_row($table->[$_]) for 1..@$table-1;
$t->draw;
},
# per-function participant
functions => {
'func1' => {
bench_code_template => 'Text::ANSITable::func1([])',
},
lib/Acme/CPANModulesUtil/Bencher.pm view on Meta::CPAN
{
module => 'Text::ANSITable',
...
bench_code => sub {
my ($table) = @_;
my $t = Text::ANSITable->new(
use_utf8 => 0,
use_box_chars => 0,
use_color => 0,
columns => $table->[0],
border_style => 'Default::single_ascii',
);
$t->add_row($table->[$_]) for 1..@$table-1;
$t->draw;
},
# per-function participant
functions => {
'func1' => {
bench_code_template => 'Text::ANSITable::func1([])',
},
lib/Acme/CPANModulesUtil/Bencher.pm view on Meta::CPAN
{
module => 'Text::ANSITable',
...
bench_code => sub {
my ($table) = @_;
my $t = Text::ANSITable->new(
use_utf8 => 0,
use_box_chars => 0,
use_color => 0,
columns => $table->[0],
border_style => 'Default::single_ascii',
);
$t->add_row($table->[$_]) for 1..@$table-1;
$t->draw;
},
# per-function participant
functions => {
'func1' => {
bench_code_template => 'Text::ANSITable::func1([])',
},
( run in 1.704 second using v1.01-cache-2.11-cpan-49f99fa48dc )