NAME

Bencher::Scenario::AcmePERLANCARTestPerformance - Benchmark Acme::PERLANCAR::Test::Performance

VERSION

This document describes version 0.04 of Bencher::Scenario::AcmePERLANCARTestPerformance (from Perl distribution Bencher-Scenario-AcmePERLANCARTestPerformance), released on 2017-01-25.

SYNOPSIS

To run benchmark with default option:

% bencher -m AcmePERLANCARTestPerformance

To run module startup overhead benchmark:

% bencher --module-startup -m AcmePERLANCARTestPerformance

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.

Acme::PERLANCAR::Test::Performance 0.06

BENCHMARK PARTICIPANTS

  • Acme::PERLANCAR::Test::Performance::primes (perl_code)

    Function call template:

    Acme::PERLANCAR::Test::Performance::primes(<num>)

BENCHMARK DATASETS

  • 100

SAMPLE BENCHMARK RESULTS

Run on: perl: v5.24.0, CPU: Intel(R) Core(TM) M-5Y71 CPU @ 1.20GHz (2 cores), OS: GNU/Linux LinuxMint version 17.3, OS kernel: Linux version 3.19.0-32-generic.

Benchmark with bencher -m AcmePERLANCARTestPerformance --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.01 --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.02 --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.03 --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.04 --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.05 --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.06 --multimodver Acme::PERLANCAR::Test::Performance:

#table1#
+--------+-----------+-----------+------------+---------+---------+
| modver | rate (/s) | time (ms) | vs_slowest |  errors | samples |
+--------+-----------+-----------+------------+---------+---------+
| 0.01   |       639 |    1.56   |       1    | 2.1e-07 |      21 |
| 0.02   |      2830 |    0.354  |       4.42 | 5.1e-08 |      22 |
| 0.03   |      3610 |    0.277  |       5.64 | 2.5e-07 |      22 |
| 0.04   |     78000 |    0.013  |     120    | 2.7e-08 |      20 |
| 0.05   |     78000 |    0.013  |     120    |   2e-08 |      35 |
| 0.06   |     79100 |    0.0126 |     124    | 6.1e-09 |      24 |
+--------+-----------+-----------+------------+---------+---------+

Benchmark with bencher -m AcmePERLANCARTestPerformance --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.01 --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.02 --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.03 --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.04 --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.05 --include-path /home/u1/repos/perl-Acme-PERLANCAR-Test-Performance/archive/0.06 --module-startup --multimodver Acme::PERLANCAR::Test::Performance:

#table2#
+------------------------------------+--------+-----------+------------------------+------------+---------+---------+
| participant                        | modver | time (ms) | mod_overhead_time (ms) | vs_slowest |  errors | samples |
+------------------------------------+--------+-----------+------------------------+------------+---------+---------+
| Acme::PERLANCAR::Test::Performance | 0.06   |       4.9 |                    3.2 |        1   | 1.7e-05 |      20 |
| Acme::PERLANCAR::Test::Performance | 0.02   |       4.9 |                    3.2 |        1   | 1.6e-05 |      20 |
| Acme::PERLANCAR::Test::Performance | 0.03   |       4.8 |                    3.1 |        1   | 2.3e-05 |      20 |
| Acme::PERLANCAR::Test::Performance | 0.05   |       4.7 |                    3   |        1   | 1.8e-05 |      20 |
| Acme::PERLANCAR::Test::Performance | 0.01   |       4.7 |                    3   |        1.1 | 2.4e-05 |      20 |
| Acme::PERLANCAR::Test::Performance | 0.04   |       4.7 |                    3   |        1.1 | 1.9e-05 |      20 |
| perl -e1 (baseline)                |        |       1.7 |                    0   |        2.9 | 9.4e-06 |      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-AcmePERLANCARTestPerformance.

SOURCE

Source repository is at https://github.com/perlancar/perl-Bencher-Scenario-AcmePERLANCARTestPerformance.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-Scenario-AcmePERLANCARTestPerformance

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.