NAME
Bencher::Scenario::Log::Any::Startup
VERSION
This document describes version 0.100 of Bencher::Scenario::Log::Any::Startup (from Perl distribution Bencher-Scenarios-Log-Any), released on 2023-10-29.
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.140
Log::Any::Adapter::Stdout 1.717
Log::Any::Proxy 1.717
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)
BENCHMARK SAMPLE RESULTS
Sample benchmark #1
Run on: perl: v5.38.0, 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::Adapter::Screen | 14.6 | 8.53 | 0.00% | 141.10% | 6.3e-06 | 20 |
| Log::Any::Adapter::Stdout | 14.2 | 8.13 | 3.34% | 133.32% | 3.2e-06 | 20 |
| Log::Any::Adapter::Null | 14 | 7.93 | 4.32% | 131.11% | 4.2e-06 | 20 |
| Log::Any::Proxy | 13.6 | 7.53 | 7.98% | 123.28% | 4e-06 | 20 |
| Log::Any | 13.6 | 7.53 | 7.99% | 123.26% | 4.4e-06 | 20 |
| perl -e1 (baseline) | 6.07 | 0 | 141.10% | 0.00% | 2.4e-06 | 20 |
+---------------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+
The above result formatted in Benchmark.pm style:
Rate Log::Any::Adapter::Screen Log::Any::Adapter::Stdout Log::Any::Adapter::Null Log::Any::Proxy Log::Any perl -e1 (baseline)
Log::Any::Adapter::Screen 68.5/s -- -2% -4% -6% -6% -58%
Log::Any::Adapter::Stdout 70.4/s 2% -- -1% -4% -4% -57%
Log::Any::Adapter::Null 71.4/s 4% 1% -- -2% -2% -56%
Log::Any::Proxy 73.5/s 7% 4% 2% -- 0% -55%
Log::Any 73.5/s 7% 4% 2% 0% -- -55%
perl -e1 (baseline) 164.7/s 140% 133% 130% 124% 124% --
Legends:
Log::Any: mod_overhead_time=7.53 participant=Log::Any
Log::Any::Adapter::Null: mod_overhead_time=7.93 participant=Log::Any::Adapter::Null
Log::Any::Adapter::Screen: mod_overhead_time=8.53 participant=Log::Any::Adapter::Screen
Log::Any::Adapter::Stdout: mod_overhead_time=8.13 participant=Log::Any::Adapter::Stdout
Log::Any::Proxy: mod_overhead_time=7.53 participant=Log::Any::Proxy
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-Scenarios-Log-Any.
SOURCE
Source repository is at https://github.com/perlancar/perl-Bencher-Scenarios-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) 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-Scenarios-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.