NAME
Bencher::Scenario::LogGer::OutputStartup
VERSION
This document describes version 0.014 of Bencher::Scenario::LogGer::OutputStartup (from Perl distribution Bencher-Scenarios-LogGer), released on 2018-12-20.
SYNOPSIS
To run benchmark with default option:
% bencher -m LogGer::OutputStartup
To run module startup overhead benchmark:
% bencher --module-startup -m LogGer::OutputStartup
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::ger::Output::Array 0.025
Log::ger::Output::ArrayRotate 0.001
Log::ger::Output::Callback 0.004
Log::ger::Output::Composite 0.007
Log::ger::Output::DirWriteRotate 0.002
Log::ger::Output::File 0.006
Log::ger::Output::FileWriteRotate 0.002
Log::ger::Output::LogAny 0.006
Log::ger::Output::Null 0.025
Log::ger::Output::Screen 0.007
Log::ger::Output::String 0.025
Log::ger::Output::Syslog 0.001
BENCHMARK PARTICIPANTS
baseline (command)
load-Array (command)
init-with-Array (command)
load-ArrayRotate (command)
init-with-ArrayRotate (command)
load-Callback (command)
init-with-Callback (command)
load-Composite (command)
init-with-Composite (command)
load-DirWriteRotate (command)
init-with-DirWriteRotate (command)
load-File (command)
init-with-File (command)
load-FileWriteRotate (command)
init-with-FileWriteRotate (command)
load-LogAny (command)
init-with-LogAny (command)
load-Null (command)
init-with-Null (command)
load-Screen (command)
init-with-Screen (command)
load-String (command)
init-with-String (command)
load-Syslog (command)
init-with-Syslog (command)
SAMPLE BENCHMARK RESULTS
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 LogGer::OutputStartup
):
#table1#
+---------------------------+-----------+-----------+------------+-----------+---------+
| participant | rate (/s) | time (ms) | vs_slowest | errors | samples |
+---------------------------+-----------+-----------+------------+-----------+---------+
| init-with-FileWriteRotate | 21 | 47 | 1 | 0.00012 | 20 |
| init-with-Syslog | 31 | 33 | 1.4 | 7.6e-05 | 21 |
| init-with-LogAny | 49 | 20 | 2.3 | 0.00016 | 21 |
| init-with-Composite | 55 | 18 | 2.6 | 5.3e-05 | 21 |
| init-with-DirWriteRotate | 59 | 17 | 2.8 | 3.6e-05 | 21 |
| init-with-Screen | 74 | 13 | 3.5 | 3.2e-05 | 20 |
| init-with-File | 75 | 13 | 3.5 | 4.7e-05 | 20 |
| init-with-String | 75 | 13 | 3.5 | 3.3e-05 | 22 |
| init-with-ArrayRotate | 75 | 13 | 3.5 | 4.2e-05 | 20 |
| init-with-Array | 76 | 13 | 3.5 | 2.2e-05 | 20 |
| init-with-Callback | 77 | 13 | 3.6 | 3.4e-05 | 20 |
| init-with-Null | 78 | 13 | 3.6 | 1.4e-05 | 20 |
| load-Screen | 84 | 12 | 3.9 | 4.7e-05 | 20 |
| load-Composite | 110 | 9.2 | 5.1 | 3.2e-05 | 20 |
| load-Syslog | 120 | 8.4 | 5.6 | 2.5e-05 | 20 |
| load-File | 120 | 8.3 | 5.6 | 2.3e-05 | 20 |
| load-Callback | 120 | 8.3 | 5.6 | 4.1e-05 | 20 |
| load-FileWriteRotate | 120 | 8.2 | 5.7 | 5.3e-05 | 20 |
| load-String | 120 | 8.2 | 5.7 | 2e-05 | 20 |
| load-Array | 120 | 8.2 | 5.7 | 4.8e-05 | 20 |
| load-DirWriteRotate | 120 | 8.2 | 5.7 | 2.6e-05 | 20 |
| load-ArrayRotate | 120 | 8.1 | 5.7 | 3e-05 | 20 |
| load-LogAny | 120 | 8.1 | 5.8 | 2.3e-05 | 20 |
| load-Null | 170 | 5.8 | 8 | 4.1e-05 | 20 |
| baseline | 180 | 5.5 | 8.4 | 3.3e-05 | 20 |
+---------------------------+-----------+-----------+------------+-----------+---------+
Benchmark module startup overhead (bencher -m LogGer::OutputStartup --module-startup
):
#table2#
+-----------------------------------+-----------+------------------------+------------+---------+---------+
| participant | time (ms) | mod_overhead_time (ms) | vs_slowest | errors | samples |
+-----------------------------------+-----------+------------------------+------------+---------+---------+
| Log::ger::Output::Screen | 12 | 6.5 | 1 | 2.8e-05 | 20 |
| Log::ger::Output::Composite | 9.5 | 4 | 1.3 | 3.2e-05 | 21 |
| Log::ger::Output::File | 8.8 | 3.3 | 1.4 | 4.5e-05 | 20 |
| Log::ger::Output::DirWriteRotate | 8.6 | 3.1 | 1.4 | 5.1e-05 | 20 |
| Log::ger::Output::FileWriteRotate | 8.4 | 2.9 | 1.4 | 4.1e-05 | 20 |
| Log::ger::Output::Callback | 8.4 | 2.9 | 1.4 | 6.7e-05 | 21 |
| Log::ger::Output::LogAny | 8.3 | 2.8 | 1.4 | 3.9e-05 | 20 |
| Log::ger::Output::ArrayRotate | 8.2 | 2.7 | 1.4 | 3.1e-05 | 21 |
| Log::ger::Output::Syslog | 8.2 | 2.7 | 1.5 | 2.1e-05 | 20 |
| Log::ger::Output::Array | 8.2 | 2.7 | 1.5 | 3.2e-05 | 20 |
| Log::ger::Output::String | 8.1 | 2.6 | 1.5 | 2.3e-05 | 20 |
| Log::ger::Output::Null | 5.9 | 0.4 | 2 | 5.5e-05 | 21 |
| perl -e1 (baseline) | 5.5 | 0 | 2.2 | 4.1e-05 | 20 |
+-----------------------------------+-----------+------------------------+------------+---------+---------+
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-LogGer.
SOURCE
Source repository is at https://github.com/perlancar/perl-Bencher-Scenarios-LogGer.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-Scenarios-LogGer
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) 2018, 2017 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.