NAME

Bencher::Scenario::Accessors::ClassStartup - Benchmark startup of classes using various accessor generators

VERSION

This document describes version 0.08 of Bencher::Scenario::Accessors::ClassStartup (from Perl distribution Bencher-Scenarios-Accessors), released on 2016-06-26.

SYNOPSIS

To run benchmark with default option:

% bencher -m Accessors::ClassStartup

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

BENCHMARKED MODULES

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

Perl::Examples::Accessors::Array 0.06

Perl::Examples::Accessors::ClassAccessor 0.06

Perl::Examples::Accessors::ClassAccessorArray 0.06

Perl::Examples::Accessors::ClassInsideOut 0.06

Perl::Examples::Accessors::ClassXSAccessor 0.06

Perl::Examples::Accessors::ClassXSAccessorArray 0.06

Perl::Examples::Accessors::Hash 0.06

Perl::Examples::Accessors::Mo 0.06

Perl::Examples::Accessors::MojoBase 0.06

Perl::Examples::Accessors::Moo 0.06

Perl::Examples::Accessors::Moose 0.06

Perl::Examples::Accessors::Mouse 0.06

Perl::Examples::Accessors::ObjectSimple 0.06

Perl::Examples::Accessors::Scalar 0.06

Perl::Examples::Accessors::SimpleAccessor 0.06

BENCHMARK PARTICIPANTS

SAMPLE BENCHMARK RESULTS

Run on: perl: v5.22.2, CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (4 cores), OS: GNU/Linux Debian version 8.0, OS kernel: Linux version 3.16.0-4-amd64.

Benchmark with default options (bencher -m Accessors::ClassStartup):

+-------------------------------------------------+-----------+------------------------+------------+----------+---------+
| participant                                     | time (ms) | mod_overhead_time (ms) | vs_slowest |  errors  | samples |
+-------------------------------------------------+-----------+------------------------+------------+----------+---------+
| Perl::Examples::Accessors::Moose                |     120   |                  117.5 |        1   |   0.0004 |      20 |
| Perl::Examples::Accessors::Moo                  |      21   |                   18.5 |        5.8 | 3.2e-05  |      22 |
| Perl::Examples::Accessors::Mouse                |      17   |                   14.5 |        7   | 4.2e-05  |      20 |
| Perl::Examples::Accessors::MojoBase             |      11   |                    8.5 |       11   | 2.8e-05  |      20 |
| Perl::Examples::Accessors::ClassInsideOut       |      11   |                    8.5 |       11   | 4.8e-05  |      20 |
| Perl::Examples::Accessors::ClassXSAccessorArray |       8.2 |                    5.7 |       15   | 6.6e-05  |      20 |
| Perl::Examples::Accessors::ClassAccessor        |       8.1 |                    5.6 |       15   |   5e-05  |      20 |
| Perl::Examples::Accessors::ObjectSimple         |       8.1 |                    5.6 |       15   | 4.6e-05  |      20 |
| Perl::Examples::Accessors::ClassXSAccessor      |       7.8 |                    5.3 |       16   | 4.2e-05  |      20 |
| Perl::Examples::Accessors::SimpleAccessor       |       4.9 |                    2.4 |       25   | 3.7e-05  |      20 |
| Perl::Examples::Accessors::Mo                   |       4.4 |                    1.9 |       28   | 2.4e-05  |      22 |
| Perl::Examples::Accessors::ClassAccessorArray   |       4.3 |                    1.8 |       28   | 2.2e-05  |      20 |
| Perl::Examples::Accessors::Scalar               |       2.9 |                    0.4 |       42   | 2.7e-05  |      20 |
| Perl::Examples::Accessors::Hash                 |       2.8 |                    0.3 |       43   | 1.8e-05  |      20 |
| Perl::Examples::Accessors::Array                |       2.8 |                    0.3 |       44   | 1.6e-05  |      20 |
| perl -e1 (baseline)                             |       2.5 |                    0   |       49   | 5.5e-06  |      20 |
+-------------------------------------------------+-----------+------------------------+------------+----------+---------+

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 Bencher and bencher (CLI) for more details.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Bencher-Scenarios-Accessors.

SOURCE

Source repository is at https://github.com/perlancar/perl-Bencher-Scenarios-Accessors.

BUGS

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

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.

SEE ALSO

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 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.