NAME
Bencher::Scenario::LogGer::NullOutput - Benchmark Log::Ger logging speed with the default/null output
VERSION
This document describes version 0.001 of Bencher::Scenario::LogGer::NullOutput (from Perl distribution Bencher-Scenarios-LogGer), released on 2017-06-19.
SYNOPSIS
To run benchmark with default option:
% bencher -m LogGer::NullOutput
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.
BENCHMARK PARTICIPANTS
Log::ger-1mil_log_trace (command)
Command line:
#TEMPLATE: #perl -MLog::ger -e for(1..1_000_000) { log_trace(q[]) }
Log::ger-1mil_log_is_trace (command)
Command line:
#TEMPLATE: #perl -MLog::ger -e for(1..1_000_000) { log_is_trace(q[]) }
Log::ger+Log::ger::OptAway-1mil_log_trace (command)
Command line:
#TEMPLATE: #perl -MLog::ger::OptAway -MLog::ger -e for(1..1_000_000) { log_trace(q[]) }
Log::Any-no_adapter-1mil_log_trace (command)
Command line:
#TEMPLATE: #perl -MLog::Any -e my $log = Log::Any->get_logger; for(1..1_000_000) { $log->trace(q[]) }
Log::Any-no_adapter-1mil_is_trace (command)
Command line:
#TEMPLATE: #perl -MLog::Any -e my $log = Log::Any->get_logger; for(1..1_000_000) { $log->is_trace }
Log::Any-null_adapter-1mil_log_trace (command)
Command line:
#TEMPLATE: #perl -MLog::Any -MLog::Any::Adapter -e Log::Any::Adapter->set(q[Null]); my $log = Log::Any->get_logger; for(1..1_000_000) { $log->trace(q[]) }
Log::Any-null_adapter-1mil_is_trace (command)
Command line:
#TEMPLATE: #perl -MLog::Any -MLog::Any::Adapter -e Log::Any::Adapter->set(q[Null]); my $log = Log::Any->get_logger; for(1..1_000_000) { $log->is_trace }
SAMPLE BENCHMARK RESULTS
Run on: perl: v5.24.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::NullOutput
):
#table1#
+-------------------------------------------+-----------+-----------+------------+-----------+---------+
| participant | rate (/s) | time (ms) | vs_slowest | errors | samples |
+-------------------------------------------+-----------+-----------+------------+-----------+---------+
| Log::Any-null_adapter-1mil_log_trace | 1.3 | 760 | 1 | 0.0015 | 6 |
| Log::Any-no_adapter-1mil_is_trace | 2.5 | 400 | 1.9 | 0.0011 | 6 |
| Log::Any-null_adapter-1mil_is_trace | 2.6 | 390 | 2 | 0.00048 | 6 |
| Log::Any-no_adapter-1mil_log_trace | 6.6 | 150 | 5 | 0.00022 | 6 |
| Log::ger-1mil_log_trace | 9.9 | 100 | 7.5 | 0.00014 | 6 |
| Log::ger-1mil_log_is_trace | 11 | 94 | 8.1 | 0.00026 | 6 |
| Log::ger+Log::ger::OptAway-1mil_log_trace | 27.2 | 36.8 | 20.6 | 3.1e-05 | 7 |
+-------------------------------------------+-----------+-----------+------------+-----------+---------+
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.