#!perl

use 5.010;
use strict;
use warnings;
use FindBin '$Bin';
use lib "$Bin/../lib";

use App::BenchPermuteNamedModules qw(@participants);
use Benchmark::Command;

my $bench_arg = {};

$bench_arg->{perl} = [$^X, "-Ilib", "-e1"];

for my $p (@participants) {
    my $mod = $p->{module};
    $bench_arg->{"perl+$mod"} = [$^X, "-Ilib", "-M$mod", "-e1"];
}

Benchmark::Command::run(0, $bench_arg);

# ABSTRACT: Benchmark startup of modules doing permutation of multiple-valued key-value pairs
# PODNAME: bench-startup-permute-named-modules

__END__

=pod

=encoding UTF-8

=head1 NAME

bench-startup-permute-named-modules - Benchmark startup of modules doing permutation of multiple-valued key-value pairs

=head1 VERSION

This document describes version 0.01 of bench-startup-permute-named-modules (from Perl distribution App-BenchPermuteNamedModules), released on 2015-10-03.

=head1 DESCRIPTION

Sample result:

                                          Rate perl+Permute::Named perl+Permute::Named::Iter perl+PERLANCAR::Permute::Named   perl
 perl+Permute::Named              149.6+-0.1/s                  --                    -57.9%                         -57.9% -84.0%
 perl+Permute::Named::Iter      355.05+-0.43/s       137.34+-0.33%                        --                          -0.1% -61.9%
 perl+PERLANCAR::Permute::Named 355.46+-0.65/s       137.62+-0.47%               0.12+-0.22%                             -- -61.9%
 perl                               933+-1.8/s         523.7+-1.3%              162.79+-0.6%                   162.49+-0.7%     --
 
 Average times:
   perl                          :     1.0718ms
   perl+PERLANCAR::Permute::Named:     2.8133ms
   perl+Permute::Named::Iter     :     2.8165ms
   perl+Permute::Named           :     6.6845ms

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/App-BenchPermuteNamedModules>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-App-BenchPermuteNamedModules>.

=head1 BUGS

Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-BenchPermuteNamedModules>

When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut
