Bencher-Scenarios-DateTimeFormatISO8601Format

 view release on metacpan or  search on metacpan

lib/Bencher/Scenario/DateTimeFormatISO8601Format/Formatting.pm  view on Meta::CPAN

=head1 VERSION

This document describes version 0.001 of Bencher::Scenario::DateTimeFormatISO8601Format::Formatting (from Perl distribution Bencher-Scenarios-DateTimeFormatISO8601Format), released on 2018-07-01.

=head1 SYNOPSIS

To run benchmark with default option:

 % bencher -m DateTimeFormatISO8601Format::Formatting

To run module startup overhead benchmark:

 % bencher --module-startup -m DateTimeFormatISO8601Format::Formatting

For more options (dump scenario, list/include/exclude/add participants, list/include/exclude/add datasets, etc), see L<bencher> or run C<bencher --help>.

=head1 DESCRIPTION

Packaging a benchmark script as a Bencher scenario makes it convenient to include/exclude/add participants/datasets (either via CLI or Perl code), send the result to a central repository, among others . See L<Bencher> and L<bencher> (CLI) for more de...

=head1 BENCHMARKED MODULES

Version numbers shown below are the versions used when running the sample benchmark.

L<DateTime::Format::ISO8601::Format> 0.003

=head1 BENCHMARK PARTICIPANTS

=over

=item * format_date (perl_code) [format_date]

Function call template:

 DateTime::Format::ISO8601::Format->new->format_date(<dt>)



=item * format_time (perl_code) [format_time]

Function call template:

 DateTime::Format::ISO8601::Format->new->format_time(<dt>)



=item * format_datetime (perl_code) [format_datetime]

Function call template:

 DateTime::Format::ISO8601::Format->new->format_datetime(<dt>)



=back

=head1 BENCHMARK DATASETS

=over

=item * do{my$a=[bless({formatter=>undef,local_c=>{day=>31,day_of_quarter=>92,day_of_week=>7,day_of_year=>366,hour=>12,minute=>34,month=>12,quarter=>4,second=>56,year=>2000},local_rd_days=>730485,local_rd_secs=>45296,locale=>bless({am_pm_abbreviated=...

=back

=head1 SAMPLE BENCHMARK RESULTS

Run on: perl: I<< v5.26.1 >>, CPU: I<< Intel(R) Core(TM) M-5Y71 CPU @ 1.20GHz (2 cores) >>, OS: I<< GNU/Linux LinuxMint version 18.3 >>, OS kernel: I<< Linux version 4.10.0-38-generic >>.

Benchmark with default options (C<< bencher -m DateTimeFormatISO8601Format::Formatting >>):

 #table1#
 +-----------------+-----------------+-----------+-----------+------------+---------+---------+
 | participant     | p_tags          | rate (/s) | time (μs) | vs_slowest |  errors | samples |
 +-----------------+-----------------+-----------+-----------+------------+---------+---------+
 | format_datetime | format_datetime |     27000 |        37 |        1   | 6.7e-08 |      20 |
 | format_time     | format_time     |     28000 |        36 |        1   | 5.2e-08 |      21 |
 | format_date     | format_date     |     29000 |        35 |        1.1 | 1.1e-07 |      20 |
 +-----------------+-----------------+-----------+-----------+------------+---------+---------+


Benchmark module startup overhead (C<< bencher -m DateTimeFormatISO8601Format::Formatting --module-startup >>):

 #table2#
 +-----------------------------------+-----------+------------------------+------------+---------+---------+
 | participant                       | time (ms) | mod_overhead_time (ms) | vs_slowest |  errors | samples |
 +-----------------------------------+-----------+------------------------+------------+---------+---------+
 | DateTime::Format::ISO8601::Format |       7.7 |                    2.4 |        1   | 4.1e-05 |      20 |
 | perl -e1 (baseline)               |       5.3 |                    0   |        1.5 | 1.9e-05 |      20 |
 +-----------------------------------+-----------+------------------------+------------+---------+---------+


To display as an interactive HTML table on a browser, you can add option C<--format html+datatables>.

=head1 HOMEPAGE

Please visit the project's homepage at L<https://metacpan.org/release/Bencher-Scenarios-DateTimeFormatISO8601Format>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-Bencher-Scenarios-DateTimeFormatISO8601Format>.

=head1 BUGS

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

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) 2018 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



( run in 1.351 second using v1.01-cache-2.11-cpan-ceb78f64989 )