NAME
Bencher::Scenario::Accessors::ClassStartup - Benchmark startup of classes using various accessor generators
VERSION
This document describes version 0.07 of Bencher::Scenario::Accessors::ClassStartup (from Perl distribution Bencher-Scenarios-Accessors), released on 2016-06-23.
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.05
Perl::Examples::Accessors::ClassAccessor 0.05
Perl::Examples::Accessors::ClassAccessorArray 0.05
Perl::Examples::Accessors::ClassInsideOut 0.05
Perl::Examples::Accessors::ClassXSAccessor 0.05
Perl::Examples::Accessors::ClassXSAccessorArray 0.05
Perl::Examples::Accessors::Hash 0.05
Perl::Examples::Accessors::Mo 0.05
Perl::Examples::Accessors::MojoBase 0.05
Perl::Examples::Accessors::Moo 0.05
Perl::Examples::Accessors::Moose 0.05
Perl::Examples::Accessors::Mouse 0.05
Perl::Examples::Accessors::ObjectSimple 0.05
Perl::Examples::Accessors::Scalar 0.05
BENCHMARK PARTICIPANTS
Perl::Examples::Accessors::Moose (perl_code)
Perl::Examples::Accessors::Mo (perl_code)
Perl::Examples::Accessors::Scalar (perl_code)
Perl::Examples::Accessors::MojoBase (perl_code)
Perl::Examples::Accessors::ClassAccessorArray (perl_code)
Perl::Examples::Accessors::ObjectSimple (perl_code)
Perl::Examples::Accessors::Hash (perl_code)
Perl::Examples::Accessors::Moo (perl_code)
Perl::Examples::Accessors::ClassInsideOut (perl_code)
Perl::Examples::Accessors::ClassAccessor (perl_code)
Perl::Examples::Accessors::ClassXSAccessorArray (perl_code)
Perl::Examples::Accessors::Mouse (perl_code)
Perl::Examples::Accessors::Array (perl_code)
Perl::Examples::Accessors::ClassXSAccessor (perl_code)
SAMPLE BENCHMARK RESULTS
Run on: perl: v5.22.1, 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
):
+-------------------------------------------------+-----------+------------------------+------------+-----------+---------+
| participant | time (ms) | mod_overhead_time (ms) | vs_slowest | errors | samples |
+-------------------------------------------------+-----------+------------------------+------------+-----------+---------+
| Perl::Examples::Accessors::Moose | 200 | 195.3 | 1 | 0.0029 | 20 |
| Perl::Examples::Accessors::Moo | 40 | 35.3 | 5 | 0.00061 | 21 |
| Perl::Examples::Accessors::Mouse | 27 | 22.3 | 7.3 | 0.00014 | 21 |
| Perl::Examples::Accessors::ClassInsideOut | 16 | 11.3 | 12 | 0.00012 | 20 |
| Perl::Examples::Accessors::MojoBase | 16 | 11.3 | 13 | 3.7e-05 | 20 |
| Perl::Examples::Accessors::ObjectSimple | 13 | 8.3 | 15 | 0.0001 | 20 |
| Perl::Examples::Accessors::ClassXSAccessorArray | 13 | 8.3 | 15 | 7e-05 | 20 |
| Perl::Examples::Accessors::ClassAccessor | 12 | 7.3 | 16 | 7.4e-05 | 20 |
| Perl::Examples::Accessors::ClassXSAccessor | 12 | 7.3 | 17 | 3.8e-05 | 20 |
| Perl::Examples::Accessors::ClassAccessorArray | 6.8 | 2.1 | 29 | 5.1e-05 | 20 |
| Perl::Examples::Accessors::Mo | 6.8 | 2.1 | 29 | 1.6e-05 | 20 |
| Perl::Examples::Accessors::Hash | 6 | 1.3 | 30 | 7e-05 | 22 |
| Perl::Examples::Accessors::Scalar | 6 | 1.3 | 30 | 0.00011 | 20 |
| Perl::Examples::Accessors::Array | 5.4 | 0.7 | 37 | 2.8e-05 | 20 |
| perl -e1 (baseline) | 4.7 | 0 | 42 | 3.9e-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.