NAME
Bencher::Scenario::Accessors::GeneratorStartup - Benchmark startup of various accessor generators
VERSION
This document describes version 0.10 of Bencher::Scenario::Accessors::GeneratorStartup (from Perl distribution Bencher-Scenarios-Accessors), released on 2016-09-09.
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::InsideOut 1.13
Class::Tiny 1.004
Class::XSAccessor 1.19
Mo 0.40
Moo 2.002004
Moose 2.1805
Mouse v2.4.5
Object::Simple 3.1703
Simple::Accessor 1.02
BENCHMARK PARTICIPANTS
Simple::Accessor (perl_code)
Mouse (perl_code)
Mojo::Base (perl_code)
Class::Accessor (perl_code)
(perl_code)
Moose (perl_code)
Moo (perl_code)
Class::XSAccessor (perl_code)
(perl_code)
Class::Tiny (perl_code)
Class::XSAccessor::Array (perl_code)
Class::Accessor::Array (perl_code)
(perl_code)
Class::InsideOut (perl_code)
Mo (perl_code)
Object::Simple (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::GeneratorStartup
):
#table1#
+--------------------------+-----------+------------------------+------------+-----------+---------+
| participant | time (ms) | mod_overhead_time (ms) | vs_slowest | errors | samples |
+--------------------------+-----------+------------------------+------------+-----------+---------+
| Moose | 200 | 196 | 1 | 0.0027 | 20 |
| Mouse | 26 | 22 | 7 | 0.00013 | 20 |
| Moo | 20 | 16 | 9.2 | 2.9e-05 | 20 |
| Class::Tiny | 20 | 16 | 10 | 0.00024 | 20 |
| Class::InsideOut | 16 | 12 | 11 | 2.6e-05 | 20 |
| Mojo::Base | 16 | 12 | 12 | 4.4e-05 | 20 |
| Class::XSAccessor::Array | 13 | 9 | 15 | 9.6e-05 | 21 |
| Object::Simple | 12 | 8 | 15 | 4.6e-05 | 20 |
| Class::XSAccessor | 12 | 8 | 16 | 4.1e-05 | 22 |
| Class::Accessor | 11 | 7 | 16 | 2.7e-05 | 20 |
| Simple::Accessor | 8 | 4 | 20 | 8.7e-05 | 20 |
| Mo | 7 | 3 | 30 | 0.00013 | 21 |
| Class::Accessor::Array | 6.6 | 2.6 | 27 | 3.3e-05 | 20 |
| perl -e1 (baseline) | 4 | 0 | 40 | 6.4e-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.