Bencher::Scenario::PerinciSubGetArgsWebForm::get_args_from_webform - Benchmark get_args_from_webform()
This document describes version 0.001 of Bencher::Scenario::PerinciSubGetArgsWebForm::get_args_from_webform (from Perl distribution Bencher-Scenarios-PerinciSubGetArgsWebForm), released on 2018-11-22.
To run benchmark with default option:
% bencher -m PerinciSubGetArgsWebForm::get_args_from_webform
To run module startup overhead benchmark:
% bencher --module-startup -m PerinciSubGetArgsWebForm::get_args_from_webform
For more options (dump scenario, list/include/exclude/add participants, list/include/exclude/add datasets, etc), see bencher or run bencher --help.
bencher --help
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.
Version numbers shown below are the versions used when running the sample benchmark.
Perinci::Sub::GetArgs::WebForm 0.02
Perinci::Sub::GetArgs::WebForm::get_args_from_webform (perl_code)
Function call template:
Perinci::Sub::GetArgs::WebForm::get_args_from_webform(<meta>, <form>, <meta_is_normalized>)
0 known args + 0 args
meta norm + 0 known args + 0 args
2 known args + 0 args
meta norm + 2 known args + 0 args
2 known args + 2 args
meta norm + 2 known args + 2 args
Run on: perl: v5.26.0, CPU: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz (4 cores), OS: GNU/Linux LinuxMint version 18.2, OS kernel: Linux version 4.8.0-53-generic.
Benchmark with default options (bencher -m PerinciSubGetArgsWebForm::get_args_from_webform):
bencher -m PerinciSubGetArgsWebForm::get_args_from_webform
#table1# +-----------------------------------+-----------+-----------+------------+---------+---------+ | dataset | rate (/s) | time (μs) | vs_slowest | errors | samples | +-----------------------------------+-----------+-----------+------------+---------+---------+ | meta norm + 2 known args + 2 args | 228000 | 4.39 | 1 | 1.7e-09 | 20 | | meta norm + 2 known args + 0 args | 240000 | 4.1 | 1.1 | 6.7e-09 | 20 | | 2 known args + 2 args | 302200 | 3.309 | 1.325 | 5.1e-11 | 23 | | 2 known args + 0 args | 320000 | 3.1 | 1.4 | 1.7e-08 | 20 | | meta norm + 0 known args + 0 args | 541000 | 1.85 | 2.37 | 7.6e-10 | 24 | | 0 known args + 0 args | 550000 | 1.8 | 2.4 | 4.1e-09 | 21 | +-----------------------------------+-----------+-----------+------------+---------+---------+
Benchmark module startup overhead (bencher -m PerinciSubGetArgsWebForm::get_args_from_webform --module-startup):
bencher -m PerinciSubGetArgsWebForm::get_args_from_webform --module-startup
#table2# +--------------------------------+-----------+------------------------+------------+----------+---------+ | participant | time (ms) | mod_overhead_time (ms) | vs_slowest | errors | samples | +--------------------------------+-----------+------------------------+------------+----------+---------+ | Perinci::Sub::GetArgs::WebForm | 9 | 3 | 1 | 8.6e-05 | 20 | | perl -e1 (baseline) | 6 | 0 | 1 | 0.0001 | 20 | +--------------------------------+-----------+------------------------+------------+----------+---------+
To display as an interactive HTML table on a browser, you can add option --format html+datatables.
--format html+datatables
Please visit the project's homepage at https://metacpan.org/release/Bencher-Scenarios-PerinciSubGetArgsWebForm.
Source repository is at https://github.com/perlancar/perl-Bencher-Scenarios-PerinciSubGetArgsWebForm.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-Scenarios-PerinciSubGetArgsWebForm
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.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2018 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.
To install Bencher::Scenarios::PerinciSubGetArgsWebForm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bencher::Scenarios::PerinciSubGetArgsWebForm
CPAN shell
perl -MCPAN -e shell install Bencher::Scenarios::PerinciSubGetArgsWebForm
For more information on module installation, please visit the detailed CPAN module installation guide.