NAME

Bencher::Scenario::LogGer::OutputStartup

VERSION

This document describes version 0.011 of Bencher::Scenario::LogGer::OutputStartup (from Perl distribution Bencher-Scenarios-LogGer), released on 2017-08-01.

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.020

Log::ger::Output::ArrayWithLimits 0.001

Log::ger::Output::Callback 0.002

Log::ger::Output::Composite 0.007

Log::ger::Output::DirWriteRotate 0.002

Log::ger::Output::File 0.002

Log::ger::Output::FileWriteRotate 0.001

Log::ger::Output::LogAny 0.006

Log::ger::Output::LogDispatchOutput 0.001

Log::ger::Output::Null 0.020

Log::ger::Output::Screen 0.005

Log::ger::Output::String 0.020

Log::ger::Output::Syslog 0.001

BENCHMARK PARTICIPANTS

SAMPLE BENCHMARK RESULTS

Run on: perl: v5.26.0, CPU: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz (4 cores), OS: GNU/Linux Debian version 8.0, OS kernel: Linux version 3.16.0-4-amd64.

Benchmark with default options (bencher -m LogGer::OutputStartup):

#table1#
+-----------------------------+-----------+-----------+------------+----------+---------+
| participant                 | rate (/s) | time (ms) | vs_slowest |  errors  | samples |
+-----------------------------+-----------+-----------+------------+----------+---------+
| init-with-LogDispatchOutput |       8.7 |     120   |        1   |   0.0002 |      23 |
| init-with-FileWriteRotate   |      20   |      50   |        2.3 |   0.0001 |      20 |
| init-with-Syslog            |      30   |      33   |        3.5 |   6e-05  |      21 |
| init-with-LogAny            |      49   |      20   |        5.7 | 6.1e-05  |      20 |
| init-with-Composite         |      53   |      19   |        6.1 | 5.9e-05  |      21 |
| init-with-DirWriteRotate    |      58   |      17   |        6.7 | 4.1e-05  |      20 |
| init-with-File              |      74   |      13   |        8.6 | 3.4e-05  |      21 |
| init-with-Screen            |      75   |      13   |        8.6 | 5.4e-05  |      21 |
| init-with-Callback          |      75   |      13   |        8.7 | 3.8e-05  |      20 |
| init-with-String            |      75   |      13   |        8.7 | 2.3e-05  |      20 |
| init-with-Array             |      76   |      13   |        8.7 | 3.9e-05  |      21 |
| init-with-ArrayWithLimits   |      76   |      13   |        8.7 | 2.5e-05  |      20 |
| init-with-Null              |      76   |      13   |        8.8 |   3e-05  |      21 |
| load-Screen                 |      83   |      12   |        9.6 | 3.8e-05  |      20 |
| load-LogDispatchOutput      |      86   |      12   |        9.9 | 3.3e-05  |      20 |
| load-Composite              |     110   |       9.3 |       12   | 4.9e-05  |      20 |
| load-String                 |     120   |       8.5 |       14   |   6e-05  |      20 |
| load-Syslog                 |     120   |       8.5 |       14   | 2.9e-05  |      20 |
| load-Array                  |     120   |       8.5 |       14   |   7e-05  |      20 |
| load-LogAny                 |     120   |       8.4 |       14   | 2.3e-05  |      20 |
| load-DirWriteRotate         |     120   |       8.4 |       14   | 4.5e-05  |      20 |
| load-File                   |     120   |       8.3 |       14   | 3.7e-05  |      20 |
| load-ArrayWithLimits        |     120   |       8.3 |       14   | 2.1e-05  |      20 |
| load-FileWriteRotate        |     120   |       8.3 |       14   | 4.1e-05  |      20 |
| load-Callback               |     120   |       8.3 |       14   | 1.3e-05  |      20 |
| load-Null                   |     170   |       6   |       19   | 4.5e-05  |      20 |
| baseline                    |     170   |       5.8 |       20   | 5.7e-05  |      20 |
+-----------------------------+-----------+-----------+------------+----------+---------+

Benchmark module startup overhead (bencher -m LogGer::OutputStartup --module-startup):

#table2#
+-------------------------------------+------------------------------+--------------------+----------------+-----------+------------------------+------------+---------+---------+
| participant                         | proc_private_dirty_size (kB) | proc_rss_size (MB) | proc_size (MB) | time (ms) | mod_overhead_time (ms) | vs_slowest |  errors | samples |
+-------------------------------------+------------------------------+--------------------+----------------+-----------+------------------------+------------+---------+---------+
| Log::ger::Output::LogDispatchOutput | 844                          | 4.3                | 20             |      12   |     6                  |        1   |   5e-05 |      20 |
| Log::ger::Output::Screen            | 844                          | 4.2                | 20             |      12   |     6                  |        1   | 1.7e-05 |      20 |
| Log::ger::Output::Composite         | 840                          | 4.2                | 20             |       9.2 |     3.2                |        1.3 |   4e-05 |      21 |
| Log::ger::Output::Syslog            | 840                          | 4.2                | 20             |       8.5 |     2.5                |        1.4 | 4.1e-05 |      21 |
| Log::ger::Output::ArrayWithLimits   | 840                          | 4.3                | 20             |       8.4 |     2.4                |        1.4 | 4.4e-05 |      20 |
| Log::ger::Output::File              | 844                          | 4.2                | 20             |       8.4 |     2.4                |        1.4 |   5e-05 |      20 |
| Log::ger::Output::Callback          | 840                          | 4.2                | 20             |       8.3 |     2.3                |        1.4 | 2.6e-05 |      20 |
| Log::ger::Output::FileWriteRotate   | 936                          | 4.3                | 20             |       8.3 |     2.3                |        1.4 | 2.8e-05 |      20 |
| Log::ger::Output::DirWriteRotate    | 840                          | 4.2                | 20             |       8.3 |     2.3                |        1.4 | 2.3e-05 |      20 |
| Log::ger::Output::String            | 840                          | 4.3                | 20             |       8.2 |     2.2                |        1.4 | 2.9e-05 |      20 |
| Log::ger::Output::LogAny            | 932                          | 4.4                | 20             |       8.2 |     2.2                |        1.5 | 2.5e-05 |      20 |
| Log::ger::Output::Array             | 836                          | 4.3                | 20             |       8.2 |     2.2                |        1.5 | 1.7e-05 |      20 |
| Log::ger::Output::Null              | 840                          | 4.2                | 20             |       5.9 |    -0.0999999999999996 |        2   | 4.8e-05 |      20 |
| perl -e1 (baseline)                 | 572                          | 4                  | 20             |       6   |     0                  |        2   | 5.9e-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) 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.