#!perl

our $DATE = '2015-06-19'; # DATE
our $VERSION = '0.02'; # VERSION

use 5.010001;
use strict;
use warnings;

use Benchmark::Command;

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

        'DateTime'            => [$^X, "-e", "use DateTime"],
        'Time::Moment'        => [$^X, "-e", "use Time::Moment"],
        'Time::Piece'         => [$^X, "-e", "use Time::Piece"],
    },
);

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

__END__

=pod

=encoding UTF-8

=head1 NAME

bench-startup-date-modules - Benchmark startup time of Perl date modules

=head1 VERSION

This document describes version 0.02 of bench-startup-date-modules (from Perl distribution App-BenchDateModules), released on 2015-06-19.

=head1 SYNOPSIS

 % bench-startup-date-modules

Sample output:

                         Rate    DateTime  Time::Piece Time::Moment   none
 DateTime     14.716+-0.014/s          --       -78.1%       -85.2% -97.7%
 Time::Piece    67.18+-0.14/s 356.5+-1.1%           --       -32.6% -89.7%
 Time::Moment    99.61+-0.3/s 576.9+-2.2% 48.28+-0.55%           -- -84.7%
 none              650+-3.7/s   4317+-25%  867.5+-5.9%  552.5+-4.2%     --
 
 Average times:
   none        :     1.5385ms
   Time::Moment:    10.0392ms
   Time::Piece :    14.8854ms
   DateTime    :    67.9532ms

=head1 SEE ALSO

=head1 HOMEPAGE

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

=head1 SOURCE

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

=head1 BUGS

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

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
