NAME
Bencher::Scenario::GetoptModules - Benchmark some popular Perl Getopt modules
VERSION
This document describes version 0.04 of Bencher::Scenario::GetoptModules (from Perl distribution Bencher-Scenario-GetoptModules), released on 2016-06-26.
SYNOPSIS
To run benchmark with default option:
% bencher -m GetoptModules
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.
Getopt::Long 2.49
Getopt::Long::Less 0.06
Getopt::Long::Descriptive 0.099
Getopt::Std 1.11
MooseX::Getopt 0.68
Getopt::ArgvFile 1.11
Getopt::Lucid 1.06
Getopt::Panjang 0.04
Getopt::Std::Strict 1.01
BENCHMARK PARTICIPANTS
Getopt::Long (perl_code) [getopt-long]
Getopt::Long::Less (perl_code) [getopt-long]
Getopt::Long::EvenLess (perl_code) [getopt-long]
Getopt::Long::Complete (perl_code) [getopt-long]
Getopt::Long::Descriptive (perl_code) [getopt-long]
Getopt::Long::Subcommand (perl_code) [getopt-long]
Getopt::Std (perl_code)
MooseX::Getopt (perl_code) [moox]
Getopt::ArgvFile (perl_code)
Getopt::Lucid (perl_code)
Getopt::Panjang (perl_code)
Getopt::Std::Strict (perl_code)
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 GetoptModules
):
+---------------------------+-----------+------------------------+------------+----------+---------+
| participant | time (ms) | mod_overhead_time (ms) | vs_slowest | errors | samples |
+---------------------------+-----------+------------------------+------------+----------+---------+
| MooseX::Getopt | 160 | 157.5 | 1 | 0.0003 | 20 |
| Getopt::Long::Descriptive | 26 | 23.5 | 6.2 | 5.3e-05 | 20 |
| Getopt::Lucid | 20 | 17.5 | 8.3 | 3.6e-05 | 20 |
| Getopt::ArgvFile | 15 | 12.5 | 11 | 9.4e-05 | 20 |
| Getopt::Long | 11 | 8.5 | 14 | 4.4e-05 | 20 |
| Getopt::Long::Subcommand | 9.4 | 6.9 | 17 | 3.4e-05 | 20 |
| Getopt::Std::Strict | 6.8 | 4.3 | 24 | 5.3e-05 | 20 |
| Getopt::Long::Complete | 5 | 2.5 | 33 | 4e-05 | 20 |
| Getopt::Long::Less | 4.6 | 2.1 | 35 | 2.7e-05 | 20 |
| Getopt::Panjang | 4 | 1.5 | 40 | 6.2e-05 | 20 |
| Getopt::Long::EvenLess | 4 | 1.5 | 40 | 6.1e-05 | 20 |
| Getopt::Std | 3.8 | 1.3 | 43 | 3.1e-05 | 20 |
| perl -e1 (baseline) | 2.5 | 0 | 64 | 1e-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-GetoptModules.
SOURCE
Source repository is at https://github.com/perlancar/perl-Bencher-Scenario-StartupGetoptModules.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-Scenario-GetoptModules
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.