NAME

Bencher::Scenario::Accessors::GeneratorStartup - Benchmark startup of various accessor generators

VERSION

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

SYNOPSIS

To run benchmark with default option:

% bencher -m Accessors::GeneratorStartup

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.

Class::Accessor 0.34

Class::Accessor::Array 0.02

Class::InsideOut 1.13

Class::XSAccessor 1.19

Class::XSAccessor::Array 1.19

Mo 0.39

Mojo::Base

Moo 2.001001

Moose 2.1605

Mouse v2.4.5

Object::Simple 3.16

Simple::Accessor 1.02

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::GeneratorStartup):

+--------------------------+-----------+------------------------+------------+-----------+---------+
| participant              | time (ms) | mod_overhead_time (ms) | vs_slowest |  errors   | samples |
+--------------------------+-----------+------------------------+------------+-----------+---------+
| Moose                    |     120   |                  117.4 |        1   |   0.00029 |      20 |
| Mouse                    |      18   |                   15.4 |        6.8 | 5.7e-05   |      20 |
| Moo                      |      14   |                   11.4 |        8.9 | 6.4e-05   |      20 |
| Class::InsideOut         |      11   |                    8.4 |       11   | 7.6e-05   |      20 |
| Mojo::Base               |      10   |                    7.4 |       11   | 5.2e-05   |      21 |
| Class::XSAccessor::Array |       8.2 |                    5.6 |       15   | 5.9e-05   |      20 |
| Object::Simple           |       8.2 |                    5.6 |       15   | 4.2e-05   |      20 |
| Class::Accessor          |       7.7 |                    5.1 |       16   | 6.3e-05   |      20 |
| Class::XSAccessor        |       7.7 |                    5.1 |       16   | 4.2e-05   |      20 |
| Simple::Accessor         |       5   |                    2.4 |       30   | 5.2e-05   |      20 |
| Class::Accessor::Array   |       4.3 |                    1.7 |       28   | 3.6e-05   |      20 |
| Mo                       |       4.2 |                    1.6 |       28   | 4.2e-05   |      23 |
| perl -e1 (baseline)      |       2.6 |                    0   |       47   | 7.2e-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.