The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Bencher::Scenario::Bencher::Completion - Benchmark completion response time, to monitor regression

VERSION

This document describes version 0.01 of Bencher::Scenario::Bencher::Completion (from Perl distribution Bencher-Scenarios-Bencher), released on 2016-01-06.

SYNOPSIS

To run benchmark with default option:

 % bencher -m Bencher::Completion

For more options (dump scenario, list/include/exclude/add participants, list/include/exclude/add datasets, etc), see bencher or run bencher --help.

BENCHMARK PARTICIPANTS

  • optname_common_help (perl_code)

    Run command (with COMP_LINE & COMP_POINT set, "^" marks COMP_POINT): bencher --hel^.

  • optname_common_version (perl_code)

    Run command (with COMP_LINE & COMP_POINT set, "^" marks COMP_POINT): bencher --vers^.

  • optname_action (perl_code)

    Run command (with COMP_LINE & COMP_POINT set, "^" marks COMP_POINT): bencher --acti^.

  • optval_action (perl_code)

    Run command (with COMP_LINE & COMP_POINT set, "^" marks COMP_POINT): bencher --action ^.

SAMPLE BENCHMARK RESULTS

Run on: perl: v5.22.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 option:

 +-----+------------------------+------+--------+---------+---------+
 | seq | name                   | rate | time   | errors  | samples |
 +-----+------------------------+------+--------+---------+---------+
 | 3   | optval_action          | 13   | 79ms   | 0.00036 | 20      |
 | 2   | optname_action         | 12.7 | 78.9ms | 0.00024 | 20      |
 | 0   | optname_common_help    | 12.7 | 78.9ms | 0.00025 | 20      |
 | 1   | optname_common_version | 12.8 | 78.3ms | 0.00015 | 21      |
 +-----+------------------------+------+--------+---------+---------+

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.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Bencher-Scenarios-Bencher.

SOURCE

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

BUGS

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

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) 2016 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.