#!perl

our $DATE = '2015-06-24'; # DATE
our $VERSION = '0.01'; # VERSION

use 5.010001;
use strict;
use warnings;

use App::BenchTextTableModules;
use Benchmark::Command;

Benchmark::Command::run(
    undef,
    {
        'none'                => [$^X, "-e1"],

        map {
            $_ => [$^X, "-e", "use $_"],
        } sort keys %App::BenchTextTableModules::contestants,
    },
);

# ABSTRACT: Benchmark startup time of Perl text table modules
# PODNAME: bench-startup-text-table-modules

__END__

=pod

=encoding UTF-8

=head1 NAME

bench-startup-text-table-modules - Benchmark startup time of Perl text table modules

=head1 VERSION

This document describes version 0.01 of bench-startup-text-table-modules (from Perl distribution App-BenchTextTableModules), released on 2015-06-24.

=head1 SYNOPSIS

 % bench-startup-text-table-modules

Sample output:

                                 Rate Text::ANSITable Text::MarkdownTable Text::ASCIITable   Text::Table Text::FormatTable Text::Table::Tiny Text::TabularDisplay   none
 Text::ANSITable      13.176+-0.017/s              --              -53.1%           -78.2%        -78.6%            -88.9%            -93.1%               -93.5% -97.9%
 Text::MarkdownTable  28.122+-0.025/s   113.44+-0.34%                  --           -53.5%        -54.3%            -76.3%            -85.2%               -86.2% -95.5%
 Text::ASCIITable     60.519+-0.084/s   359.33+-0.87%        115.2+-0.35%               --         -1.7%            -48.9%            -68.3%               -70.4% -90.4%
 Text::Table          61.577+-0.085/s   367.36+-0.89%       118.97+-0.36%       1.75+-0.2%            --            -48.0%            -67.7%               -69.8% -90.2%
 Text::FormatTable     118.52+-0.29/s     799.6+-2.5%         321.5+-1.1%     95.85+-0.55%  92.48+-0.54%                --            -37.8%               -42.0% -81.2%
 Text::Table::Tiny     190.65+-0.55/s      1347+-4.6%           577.9+-2%          215+-1% 209.61+-0.99%      60.85+-0.61%                --                -6.6% -69.8%
 Text::TabularDisplay   204.2+-0.37/s    1449.8+-3.5%         626.1+-1.5%    237.42+-0.77% 231.62+-0.76%      72.29+-0.53%       7.11+-0.36%                   -- -67.7%
 none                    631.4+-2.2/s       4692+-18%        2145.3+-8.1%      943.3+-3.9%   925.4+-3.9%       432.7+-2.3%       231.2+-1.5%          209.2+-1.2%     --
 
 Average times:
   none                :     1.5838ms
   Text::TabularDisplay:     4.8972ms
   Text::Table::Tiny   :     5.2452ms
   Text::FormatTable   :     8.4374ms
   Text::Table         :    16.2398ms
   Text::ASCIITable    :    16.5237ms
   Text::MarkdownTable :    35.5593ms
   Text::ANSITable     :    75.8956ms

=head1 SEE ALSO

=head1 HOMEPAGE

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

=head1 SOURCE

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

=head1 BUGS

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

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
