NAME
Bencher::Scenario::Log::Any::Startup
VERSION
This document describes version 0.101 of Bencher::Scenario::Log::Any::Startup (from Perl distribution Bencher-ScenarioBundle-Log-Any), released on 2024-05-12.
SYNOPSIS
To run benchmark with default option:
% bencher -m Log::Any::Startup
For more options (dump scenario, list/include/exclude/add participants, list/include/exclude/add datasets, etc), see bencher or run bencher --help
.
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.
BENCHMARKED MODULES
Version numbers shown below are the versions used when running the sample benchmark.
Log::Any 1.717
Log::Any::Adapter::Null 1.717
Log::Any::Adapter::Screen 0.141
Log::Any::Adapter::Stdout 1.717
Log::Any::Proxy 1.717
Log::Any::Simple 0.04
BENCHMARK PARTICIPANTS
Log::Any (perl_code)
Log::Any::Adapter::Null (perl_code)
Log::Any::Adapter::Screen (perl_code)
Log::Any::Adapter::Stdout (perl_code)
Log::Any::Proxy (perl_code)
Log::Any::Simple (perl_code)
BENCHMARK SAMPLE RESULTS
Sample benchmark #1
Run on: perl: v5.38.2, CPU: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (2 cores), OS: GNU/Linux Ubuntu version 20.04, OS kernel: Linux version 5.4.0-164-generic.
Benchmark command (default options):
% bencher -m Log::Any::Startup
Result formatted as table:
#table1#
+---------------------------+-----------+-------------------+-----------------------+-----------------------+-----------+---------+
| participant | time (ms) | mod_overhead_time | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+---------------------------+-----------+-------------------+-----------------------+-----------------------+-----------+---------+
| Log::Any::Simple | 40 | 33.7 | 0.00% | 475.56% | 0.00072 | 20 |
| Log::Any::Adapter::Stdout | 16 | 9.7 | 122.89% | 158.22% | 0.00012 | 23 |
| Log::Any | 20 | 13.7 | 132.58% | 147.46% | 0.00038 | 20 |
| Log::Any::Proxy | 20 | 13.7 | 136.49% | 143.37% | 0.00024 | 20 |
| Log::Any::Adapter::Screen | 15 | 8.7 | 142.42% | 137.43% | 1.7e-05 | 22 |
| Log::Any::Adapter::Null | 14.1 | 7.8 | 158.22% | 122.89% | 8.9e-06 | 20 |
| perl -e1 (baseline) | 6.3 | 0 | 475.56% | 0.00% | 2.8e-05 | 21 |
+---------------------------+-----------+-------------------+-----------------------+-----------------------+-----------+---------+
The above result formatted in Benchmark.pm style:
Rate Log::Any::Simple Log::Any Log::Any::Proxy Log::Any::Adapter::Stdout Log::Any::Adapter::Screen Log::Any::Adapter::Null perl -e1 (baseline)
Log::Any::Simple 25.0/s -- -50% -50% -60% -62% -64% -84%
Log::Any 50.0/s 100% -- 0% -19% -25% -29% -68%
Log::Any::Proxy 50.0/s 100% 0% -- -19% -25% -29% -68%
Log::Any::Adapter::Stdout 62.5/s 150% 25% 25% -- -6% -11% -60%
Log::Any::Adapter::Screen 66.7/s 166% 33% 33% 6% -- -6% -58%
Log::Any::Adapter::Null 70.9/s 183% 41% 41% 13% 6% -- -55%
perl -e1 (baseline) 158.7/s 534% 217% 217% 153% 138% 123% --
Legends:
Log::Any: mod_overhead_time=13.7 participant=Log::Any
Log::Any::Adapter::Null: mod_overhead_time=7.8 participant=Log::Any::Adapter::Null
Log::Any::Adapter::Screen: mod_overhead_time=8.7 participant=Log::Any::Adapter::Screen
Log::Any::Adapter::Stdout: mod_overhead_time=9.7 participant=Log::Any::Adapter::Stdout
Log::Any::Proxy: mod_overhead_time=13.7 participant=Log::Any::Proxy
Log::Any::Simple: mod_overhead_time=33.7 participant=Log::Any::Simple
perl -e1 (baseline): mod_overhead_time=0 participant=perl -e1 (baseline)
To display as an interactive HTML table on a browser, you can add option --format html+datatables
.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Bencher-ScenarioBundle-Log-Any.
SOURCE
Source repository is at https://github.com/perlancar/perl-Bencher-ScenarioBundle-Log-Any.
AUTHOR
perlancar <perlancar@cpan.org>
CONTRIBUTING
To contribute, you can send patches by email/via RT, or send pull requests on GitHub.
Most of the time, you don't need to build the distribution yourself. You can simply modify the code, then test via:
% prove -l
If you want to build the distribution (e.g. to try to install it locally on your system), you can install Dist::Zilla, Dist::Zilla::PluginBundle::Author::PERLANCAR, Pod::Weaver::PluginBundle::Author::PERLANCAR, and sometimes one or two other Dist::Zilla- and/or Pod::Weaver plugins. Any additional steps required beyond that are considered a bug and can be reported to me.
COPYRIGHT AND LICENSE
This software is copyright (c) 2024, 2023, 2017, 2016 by perlancar <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.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-ScenarioBundle-Log-Any
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.