NAME

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

VERSION

This document describes version 0.13 of Bencher::Scenario::Accessors::GeneratorStartup (from Perl distribution Bencher-Scenarios-Accessors), released on 2016-11-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.

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.

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::Struct 0.65

Class::Tiny 1.004

Class::XSAccessor 1.19

Class::XSAccessor::Array 1.19

Evo::Class

Mo 0.40

Mojo::Base

Mojo::Base::XS 0.07

Moo 2.002004

Moops 0.034

Moos 0.30

Moose 2.1805

Mouse v2.4.5

Object::Simple 3.17

Object::Tiny 1.08

Object::Tiny::RW 1.07

Object::Tiny::RW::XS 0.03

Object::Tiny::XS 1.01

Simple::Accessor 1.02

BENCHMARK PARTICIPANTS

SAMPLE BENCHMARK RESULTS

Run on: perl: v5.24.0, CPU: Intel(R) Core(TM) M-5Y71 CPU @ 1.20GHz (2 cores), OS: GNU/Linux LinuxMint version 17.3, OS kernel: Linux version 3.19.0-32-generic.

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

#table1#
+--------------------------+-----------+------------------------+------------+-----------+---------+
| participant              | time (ms) | mod_overhead_time (ms) | vs_slowest |  errors   | samples |
+--------------------------+-----------+------------------------+------------+-----------+---------+
| Moose                    |     200   |    191                 |        1   |   0.0008  |      20 |
| Moops                    |      85   |     76                 |        2.3 |   0.00019 |      20 |
| Evo::Class               |      45   |     36                 |        4.3 |   0.00019 |      20 |
| Mouse                    |      32   |     23                 |        6.1 |   0.00018 |      20 |
| Moo                      |      30   |     21                 |        7   |   0.00058 |      23 |
| Moos                     |      27   |     18                 |        7.3 |   0.00023 |      20 |
| Mojo::Base               |      22   |     13                 |        8.8 |   0.00012 |      20 |
| Class::XSAccessor        |      20   |     11                 |        9   |   0.00033 |      20 |
| Object::Tiny::RW::XS     |      20   |     11                 |        9   |   0.00064 |      22 |
| Object::Tiny::XS         |      20   |     11                 |        9   |   0.00085 |      20 |
| Class::InsideOut         |      20   |     11                 |        9.8 | 3.7e-05   |      22 |
| Class::XSAccessor::Array |      20   |     11                 |       10   |   0.00026 |      20 |
| Class::Tiny              |      17   |      8                 |       11   | 3.3e-05   |      20 |
| Class::Struct            |      15   |      6                 |       13   |   3e-05   |      20 |
| Class::Accessor          |      15   |      6                 |       13   | 4.5e-05   |      20 |
| Object::Simple           |      14.9 |      5.9               |       13.1 | 1.3e-05   |      20 |
| Mojo::Base::XS           |      12   |      3                 |       16   | 9.9e-05   |      20 |
| Simple::Accessor         |      10   |      1                 |       19   | 3.1e-05   |      20 |
| Class::Accessor::Array   |       9.7 |      0.699999999999999 |       20   | 2.1e-05   |      20 |
| Mo                       |       9.3 |      0.300000000000001 |       21   | 2.1e-05   |      21 |
| perl -e1 (baseline)      |       9   |      0                 |       20   |   0.00016 |      22 |
| Object::Tiny::RW         |       8   |     -1                 |       24   | 3.1e-05   |      20 |
| Object::Tiny             |       7.9 |     -1.1               |       25   | 9.1e-06   |      20 |
+--------------------------+-----------+------------------------+------------+-----------+---------+

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.