NAME
Bencher::Scenario::LogGer::OutputStartup
VERSION
This document describes version 0.013 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.024
Log::ger::Output::ArrayRotate 0.001
Log::ger::Output::Callback 0.003
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.024
Log::ger::Output::Screen 0.007
Log::ger::Output::String 0.024
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 | 48 | 1 | 0.00035 | 23 |
| init-with-Syslog | 29 | 35 | 1.4 | 0.00029 | 20 |
| init-with-LogAny | 50 | 20 | 2.4 | 8.5e-05 | 21 |
| init-with-Composite | 50 | 20 | 3 | 0.00024 | 20 |
| init-with-DirWriteRotate | 57 | 18 | 2.8 | 7e-05 | 20 |
| init-with-File | 70 | 14 | 3.4 | 8.7e-05 | 20 |
| init-with-Null | 70 | 10 | 3 | 0.00015 | 20 |
| init-with-Array | 75 | 13 | 3.6 | 0.00011 | 20 |
| init-with-ArrayRotate | 76 | 13 | 3.7 | 5e-05 | 20 |
| init-with-Screen | 76 | 13 | 3.7 | 8.1e-05 | 20 |
| init-with-Callback | 76 | 13 | 3.7 | 6.2e-05 | 20 |
| init-with-String | 79 | 13 | 3.8 | 1.9e-05 | 20 |
| load-Screen | 82 | 12 | 4 | 8.9e-05 | 20 |
| load-File | 100 | 9 | 5 | 0.0001 | 20 |
| load-LogAny | 100 | 9 | 5 | 0.00012 | 20 |
| load-Composite | 120 | 8.6 | 5.6 | 2.7e-05 | 20 |
| load-FileWriteRotate | 120 | 8.5 | 5.7 | 7.6e-05 | 20 |
| load-ArrayRotate | 120 | 8.4 | 5.8 | 7.8e-05 | 20 |
| load-Callback | 120 | 8.3 | 5.9 | 7.6e-05 | 20 |
| load-Array | 130 | 7.9 | 6.1 | 2.7e-05 | 20 |
| load-Syslog | 130 | 7.8 | 6.2 | 3.2e-05 | 20 |
| load-String | 130 | 7.8 | 6.2 | 1.8e-05 | 20 |
| load-DirWriteRotate | 130 | 7.6 | 6.4 | 1.2e-05 | 20 |
| load-Null | 170 | 6.1 | 8 | 5.7e-05 | 20 |
| baseline | 200 | 6 | 8 | 8.2e-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 | 7 | 1 | 4e-05 | 21 |
| Log::ger::Output::Callback | 10 | 5 | 1 | 0.00019 | 20 |
| Log::ger::Output::Composite | 8.5 | 3.5 | 1.4 | 1.7e-05 | 20 |
| Log::ger::Output::ArrayRotate | 8 | 3 | 1 | 9.8e-05 | 23 |
| Log::ger::Output::Syslog | 8 | 3 | 1.5 | 6e-05 | 21 |
| Log::ger::Output::File | 7.8 | 2.8 | 1.5 | 2.9e-05 | 20 |
| Log::ger::Output::LogAny | 7.7 | 2.7 | 1.5 | 3.7e-05 | 20 |
| Log::ger::Output::String | 7.6 | 2.6 | 1.5 | 2.8e-05 | 20 |
| Log::ger::Output::DirWriteRotate | 7.6 | 2.6 | 1.5 | 2.8e-05 | 20 |
| Log::ger::Output::FileWriteRotate | 7.6 | 2.6 | 1.5 | 1.9e-05 | 20 |
| Log::ger::Output::Array | 7.5 | 2.5 | 1.5 | 1.9e-05 | 20 |
| Log::ger::Output::Null | 5.5 | 0.5 | 2.1 | 4.1e-05 | 20 |
| perl -e1 (baseline) | 5 | 0 | 2.3 | 2.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.