Acme-CPANModulesUtil-Bencher
view release on metacpan or search on metacpan
0.006 2023-10-06 Released-By: PERLANCAR; Urgency: medium
- Add a cpanmodules entry's bench_tags to scenario participant
record.
0.005 2022-11-30 Released-By: PERLANCAR; Urgency: medium
- Add bench_include_by_default property in list entry to
participant.
0.004 2021-09-06 Released-By: PERLANCAR; Urgency: medium
- Don't add participants that do not have code.
0.003 2021-01-20 Released-By: PERLANCAR; Urgency: medium
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@Author::PERLANCAR/@Filter/ShareDir",
"version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"config" : {
"Dist::Zilla::Role::TestRunner" : {
"default_jobs" : 1
}
},
"name" : "@Author::PERLANCAR/@Filter/MakeMaker",
"version" : "6.030"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@Author::PERLANCAR/@Filter/Manifest",
"version" : "6.030"
},
name: '@Author::PERLANCAR/@Filter/ExecDir'
version: '6.030'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@Author::PERLANCAR/@Filter/ShareDir'
version: '6.030'
-
class: Dist::Zilla::Plugin::MakeMaker
config:
Dist::Zilla::Role::TestRunner:
default_jobs: 1
name: '@Author::PERLANCAR/@Filter/MakeMaker'
version: '6.030'
-
class: Dist::Zilla::Plugin::Manifest
name: '@Author::PERLANCAR/@Filter/Manifest'
version: '6.030'
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@Author::PERLANCAR/@Filter/ConfirmRelease'
version: '6.030'
{name=>'tiny (1x1)' , argv => [_make_table( 1, 1)],},
{name=>'small (3x5)' , argv => [_make_table( 3, 5)],},
{name=>'wide (30x5)' , argv => [_make_table(30, 5)],},
{name=>'long (3x300)' , argv => [_make_table( 3, 300)],},
{name=>'large (30x300)', argv => [_make_table(30, 300)],},
],
This routine extract those information and return a Bencher scenario
structure.
This function is not exported by default, but exportable.
Arguments ('*' denotes required arguments):
* cpanmodule* => *perl::modname*
Name of Acme::CPANModules::* module, without the prefix.
Returns an enveloped result (an array).
First element ($status_code) is an integer containing HTTP-like status
lib/Acme/CPANModulesUtil/Bencher.pm view on Meta::CPAN
my $p = {
module => $e->{module},
};
my $has_bench_code;
for (qw/code code_template fcall_template/) {
if ($e->{"bench_$_"}) {
$has_bench_code++;
$p->{$_} = $e->{"bench_$_"};
}
}
for (qw/tags include_by_default/) {
if (exists $e->{"bench_$_"}) {
$p->{$_} = $e->{"bench_$_"};
}
}
if ($has_bench_code || (!@per_function_participants && !$scenario->{datasets})) {
push @{ $scenario->{participants} }, $p;
}
push @{ $scenario->{participants} }, @per_function_participants;
}
lib/Acme/CPANModulesUtil/Bencher.pm view on Meta::CPAN
{name=>'tiny (1x1)' , argv => [_make_table( 1, 1)],},
{name=>'small (3x5)' , argv => [_make_table( 3, 5)],},
{name=>'wide (30x5)' , argv => [_make_table(30, 5)],},
{name=>'long (3x300)' , argv => [_make_table( 3, 300)],},
{name=>'large (30x300)', argv => [_make_table(30, 300)],},
],
This routine extract those information and return a L<Bencher> scenario
structure.
This function is not exported by default, but exportable.
Arguments ('*' denotes required arguments):
=over 4
=item * B<cpanmodule>* => I<perl::modname>
Name of Acme::CPANModules::* module, without the prefix.
( run in 0.592 second using v1.01-cache-2.11-cpan-0a6323c29d9 )