#!perl

use 5.010001;
use strict;
use warnings;

use Benchmark::Command;

Benchmark::Command::run(
    undef,
    {
        'none'                 => [$^X, "-e1"],
        'Mo'         => [$^X, "-e", "use Mo"],
        'Moo'        => [$^X, "-e", "use Moo"],
        'Moose'      => [$^X, "-e", "use Moose"],
        'Mouse'      => [$^X, "-e", "use Mouse"],
        'Mojo::Base' => [$^X, "-e", "use Mojo::Base"],
    },
);

# ABSTRACT: Benchmark startup time of various OO system modules
# PODNAME: bench-startup-oo-modules

__END__

=pod

=encoding UTF-8

=head1 NAME

bench-startup-oo-modules - Benchmark startup time of various OO system modules

=head1 VERSION

This document describes version 0.01 of bench-startup-oo-modules (from Perl distribution App-BenchStartupOoModules), released on 2015-06-14.

=head1 SYNOPSIS

 % bench-startup-oo-modules

Sample output:

                         Rate        Moose         Mouse           Moo    Mojo::Base            Mo   none
 Moose      10.2353+-0.0051/s           --        -87.0%        -90.4%        -92.9%        -97.7% -98.9%
 Mouse        78.626+-0.044/s       668.2%            --        -26.4%        -45.4%        -82.0% -91.7%
 Moo         106.803+-0.015/s       943.5%         35.8%            --        -25.9%        -75.5% -88.7%
 Mojo::Base  144.088+-0.089/s      1307.8%  83.26+-0.15%         34.9%            --        -67.0% -84.7%
 Mo            436.26+-0.38/s 4162.3+-4.2% 454.85+-0.57% 308.47+-0.36% 202.77+-0.32%            -- -53.8%
 none              944.6+-2/s    9129+-20%  1101.4+-2.6%   784.4+-1.9%   555.6+-1.4% 116.52+-0.49%     --
 
 Average times:
   none      :     1.0586ms
   Mo        :     2.2922ms
   Mojo::Base:     6.9402ms
   Moo       :     9.3630ms
   Mouse     :    12.7184ms
   Moose     :    97.7011ms

=head1 HOMEPAGE

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

=head1 SOURCE

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

=head1 BUGS

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

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
