NAME
Bencher::Scenario::ColorRGBUtil - Benchmark Color::RGB::Util
VERSION
This document describes version 0.001 of Bencher::Scenario::ColorRGBUtil
(from Perl distribution Bencher-Scenario-ColorRGBUtil), released on
2018-09-26.
SYNOPSIS
To run benchmark with default option:
% bencher -m ColorRGBUtil
To run module startup overhead benchmark:
% bencher --module-startup -m ColorRGBUtil
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.
Color::RGB::Util 0.590
BENCHMARK PARTICIPANTS
* Color::RGB::Util::mix_2_rgb_colors (perl_code)
Function call template:
Color::RGB::Util::mix_2_rgb_colors("000000","ffffff")
* Color::RGB::Util::rand_rgb_color (perl_code)
Function call template:
Color::RGB::Util::rand_rgb_color()
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 "bencher -m ColorRGBUtil --env-hashes-json
'[{"PERL5OPT":"-Iarchive/Color-RGB-Util-0.58/lib"},{"PERL5OPT":"-Iarchiv
e/Color-RGB-Util-0.590/lib"}]'":
#table1#
+------------------------------------+---------------------------------------------+-----------+-----------+------------+---------+---------+
| participant | env | rate (/s) | time (μs) | vs_slowest | errors | samples |
+------------------------------------+---------------------------------------------+-----------+-----------+------------+---------+---------+
| Color::RGB::Util::rand_rgb_color | PERL5OPT=-Iarchive/Color-RGB-Util-0.58/lib | 70900 | 14.1 | 1 | 5e-09 | 36 |
| Color::RGB::Util::mix_2_rgb_colors | PERL5OPT=-Iarchive/Color-RGB-Util-0.590/lib | 72000 | 14 | 1 | 2.5e-08 | 23 |
| Color::RGB::Util::rand_rgb_color | PERL5OPT=-Iarchive/Color-RGB-Util-0.590/lib | 72000 | 14 | 1 | 2e-08 | 20 |
| Color::RGB::Util::mix_2_rgb_colors | PERL5OPT=-Iarchive/Color-RGB-Util-0.58/lib | 75000 | 13 | 1.1 | 2.7e-08 | 20 |
+------------------------------------+---------------------------------------------+-----------+-----------+------------+---------+---------+
Benchmark module startup overhead ("bencher -m ColorRGBUtil
--module-startup"):
#table2#
+---------------------+---------------------------------------------+-----------+------------------------+------------+---------+---------+
| participant | env | time (ms) | mod_overhead_time (ms) | vs_slowest | errors | samples |
+---------------------+---------------------------------------------+-----------+------------------------+------------+---------+---------+
| Color::RGB::Util | PERL5OPT=-Iarchive/Color-RGB-Util-0.58/lib | 8.3 | 3.7 | 1 | 3.7e-05 | 20 |
| Color::RGB::Util | PERL5OPT=-Iarchive/Color-RGB-Util-0.590/lib | 8.3 | 3.7 | 1 | 4e-05 | 20 |
| perl -e1 (baseline) | PERL5OPT=-Iarchive/Color-RGB-Util-0.58/lib | 4.6 | 0 | 1.8 | 2.6e-05 | 20 |
| perl -e1 (baseline) | PERL5OPT=-Iarchive/Color-RGB-Util-0.590/lib | 4.5 | -0.0999999999999996 | 1.9 | 2.4e-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-Scenario-ColorRGBUtil>.
SOURCE
Source repository is at
<https://github.com/perlancar/perl-Bencher-Scenario-ColorRGBUtil>.
BUGS
Please report any bugs or feature requests on the bugtracker website
<https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-Scenario-Colo
rRGBUtil>
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 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.