NAME
Bencher::Scenario::Accessors::ClassStartup - Benchmark startup of classes using various accessor generators
VERSION
This document describes version 0.11 of Bencher::Scenario::Accessors::ClassStartup (from Perl distribution Bencher-Scenarios-Accessors), released on 2016-09-29.
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.
Class::Accessor 0.34
Class::InsideOut 1.13
Class::Tiny 1.004
Class::XSAccessor 1.19
Mo 0.40
Mojo::Base::XS 0.07
Moo 2.002004
Moose 2.1805
Mouse v2.4.5
Object::Simple 3.1703
Perl::Examples::Accessors::Array 0.08
Perl::Examples::Accessors::ClassAccessor 0.08
Perl::Examples::Accessors::ClassAccessorArray 0.08
Perl::Examples::Accessors::ClassInsideOut 0.08
Perl::Examples::Accessors::ClassTiny 0.08
Perl::Examples::Accessors::ClassXSAccessor 0.08
Perl::Examples::Accessors::ClassXSAccessorArray 0.08
Perl::Examples::Accessors::Hash 0.08
Perl::Examples::Accessors::Mo 0.08
Perl::Examples::Accessors::MojoBase 0.08
Perl::Examples::Accessors::MojoBaseXS 0.08
Perl::Examples::Accessors::Moo 0.08
Perl::Examples::Accessors::Moose 0.08
Perl::Examples::Accessors::Mouse 0.08
Perl::Examples::Accessors::ObjectSimple 0.08
Perl::Examples::Accessors::Scalar 0.08
Perl::Examples::Accessors::SimpleAccessor 0.08
Simple::Accessor 1.02
BENCHMARK PARTICIPANTS
Perl::Examples::Accessors::ClassTiny (perl_code)
Perl::Examples::Accessors::ObjectSimple (perl_code)
Perl::Examples::Accessors::ClassAccessor (perl_code)
Perl::Examples::Accessors::Mouse (perl_code)
Perl::Examples::Accessors::MojoBaseXS (perl_code)
Perl::Examples::Accessors::Moose (perl_code)
Perl::Examples::Accessors::ClassAccessorArray (perl_code)
Perl::Examples::Accessors::Array (perl_code)
Perl::Examples::Accessors::Scalar (perl_code)
Perl::Examples::Accessors::ClassInsideOut (perl_code)
Perl::Examples::Accessors::Moo (perl_code)
Perl::Examples::Accessors::Mo (perl_code)
Perl::Examples::Accessors::ClassXSAccessorArray (perl_code)
Perl::Examples::Accessors::MojoBase (perl_code)
Perl::Examples::Accessors::SimpleAccessor (perl_code)
Perl::Examples::Accessors::Hash (perl_code)
Perl::Examples::Accessors::ClassXSAccessor (perl_code)
SAMPLE BENCHMARK RESULTS
Run on: perl: v5.24.0, CPU: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz (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
):
#table1#
+-------------------------------------------------+-----------+------------------------+------------+-----------+---------+
| participant | time (ms) | mod_overhead_time (ms) | vs_slowest | errors | samples |
+-------------------------------------------------+-----------+------------------------+------------+-----------+---------+
| Perl::Examples::Accessors::Moose | 170 | 164.8 | 1 | 0.00046 | 20 |
| Perl::Examples::Accessors::Moo | 32 | 26.8 | 5.3 | 4.5e-05 | 20 |
| Perl::Examples::Accessors::Mouse | 26 | 20.8 | 6.6 | 3.8e-05 | 20 |
| Perl::Examples::Accessors::ClassInsideOut | 17 | 11.8 | 10 | 5.7e-05 | 20 |
| Perl::Examples::Accessors::MojoBase | 16 | 10.8 | 11 | 5.8e-05 | 21 |
| Perl::Examples::Accessors::ClassTiny | 15 | 9.8 | 11 | 5.9e-05 | 21 |
| Perl::Examples::Accessors::ClassXSAccessorArray | 13 | 7.8 | 13 | 6.5e-05 | 20 |
| Perl::Examples::Accessors::ObjectSimple | 13 | 7.8 | 13 | 4.7e-05 | 21 |
| Perl::Examples::Accessors::ClassXSAccessor | 12 | 6.8 | 14 | 8.8e-05 | 21 |
| Perl::Examples::Accessors::ClassAccessor | 12 | 6.8 | 14 | 1.7e-05 | 21 |
| Perl::Examples::Accessors::MojoBaseXS | 9.2 | 4 | 18 | 4.7e-05 | 20 |
| Perl::Examples::Accessors::SimpleAccessor | 8 | 2.8 | 20 | 0.0001 | 20 |
| Perl::Examples::Accessors::ClassAccessorArray | 7.3 | 2.1 | 23 | 3.2e-05 | 20 |
| Perl::Examples::Accessors::Mo | 7.1 | 1.9 | 24 | 2.6e-05 | 20 |
| perl -e1 (baseline) | 5.2 | 0 | 33 | 3.3e-05 | 20 |
| Perl::Examples::Accessors::Array | 5.2 | 0 | 33 | 3e-05 | 20 |
| Perl::Examples::Accessors::Scalar | 4.9 | -0.3 | 34 | 2.4e-05 | 20 |
| Perl::Examples::Accessors::Hash | 4.8 | -0.4 | 35 | 1.3e-05 | 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.