NAME
Bencher::Scenario::PermuteNamedModules - Benchmark various modules doing permutation of multiple-valued key-value pairs
VERSION
This document describes version 0.03 of Bencher::Scenario::PermuteNamedModules (from Perl distribution Bencher-Scenario-PermuteNamedModules), released on 2016-06-26.
SYNOPSIS
To run benchmark with default option:
% bencher -m PermuteNamedModules
To run module startup overhead benchmark:
% bencher --module-startup -m PermuteNamedModules
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.
PERLANCAR::Permute::Named 0.02
Permute::Named 1.100980
Permute::Named::Iter 0.02
BENCHMARK PARTICIPANTS
PERLANCAR::Permute::Named (perl_code)
Permute::Named (perl_code)
Permute::Named::Iter (perl_code)
BENCHMARK DATASETS
small (2x3=6)
long (2x50=100)
wide (2**10=1k)
large (10x10x10x2x2x3=12ki)
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 PermuteNamedModules
):
+---------------------------+-----------------------------+-----------+-----------+------------+---------+---------+
| participant | dataset | rate (/s) | time (ms) | vs_slowest | errors | samples |
+---------------------------+-----------------------------+-----------+-----------+------------+---------+---------+
| Permute::Named | large (10x10x10x2x2x3=12ki) | 12 | 80 | 1 | 8.1e-05 | 20 |
| PERLANCAR::Permute::Named | large (10x10x10x2x2x3=12ki) | 39 | 25 | 3.1 | 4.3e-05 | 22 |
| Permute::Named::Iter | large (10x10x10x2x2x3=12ki) | 43 | 23 | 3.4 | 5.5e-05 | 20 |
| Permute::Named | wide (2**10=1k) | 97.8 | 10.2 | 7.84 | 4.1e-06 | 20 |
| PERLANCAR::Permute::Named | wide (2**10=1k) | 290 | 3.5 | 23 | 1.2e-05 | 20 |
| Permute::Named::Iter | wide (2**10=1k) | 324 | 3.09 | 25.9 | 9.1e-07 | 20 |
| Permute::Named | long (2x50=100) | 3630 | 0.275 | 291 | 1.6e-07 | 20 |
| PERLANCAR::Permute::Named | long (2x50=100) | 7100 | 0.14 | 570 | 2.1e-07 | 20 |
| Permute::Named::Iter | long (2x50=100) | 9500 | 0.11 | 760 | 1.6e-07 | 20 |
| PERLANCAR::Permute::Named | small (2x3=6) | 22000 | 0.045 | 1800 | 1.1e-07 | 24 |
| Permute::Named | small (2x3=6) | 29000 | 0.034 | 2300 | 5.3e-08 | 20 |
| Permute::Named::Iter | small (2x3=6) | 95000 | 0.0105 | 7610 | 3e-09 | 24 |
+---------------------------+-----------------------------+-----------+-----------+------------+---------+---------+
Benchmark module startup overhead (bencher -m PermuteNamedModules --module-startup
):
+---------------------------+-----------+------------------------+------------+---------+---------+
| participant | time (ms) | mod_overhead_time (ms) | vs_slowest | errors | samples |
+---------------------------+-----------+------------------------+------------+---------+---------+
| Permute::Named | 13 | 7.9 | 1 | 5.7e-05 | 20 |
| Permute::Named::Iter | 7.6 | 2.5 | 1.7 | 2.5e-05 | 20 |
| PERLANCAR::Permute::Named | 7.6 | 2.5 | 1.7 | 2.5e-05 | 20 |
| perl -e1 (baseline) | 5.1 | 0 | 2.6 | 1.2e-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-Scenario-PermuteNamedModules.
SOURCE
Source repository is at https://github.com/perlancar/perl-Bencher-Scenario-PermuteNamedModules.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-Scenario-PermuteNamedModules
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.
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.