Acme-CPANModulesUtil-Bencher

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
    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

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
    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

197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
{
    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.556 second using v1.01-cache-2.11-cpan-26ccb49234f )