Bencher::Scenario::Glob - Benchmark glob()
This document describes version 0.001 of Bencher::Scenario::Glob (from Perl distribution Bencher-Scenario-Glob), released on 2017-06-11.
To run benchmark with default option:
% bencher -m Glob
For more options (dump scenario, list/include/exclude/add participants, list/include/exclude/add datasets, etc), see bencher or run bencher --help.
bencher --help
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.
glob (perl_code)
Code template:
my @res = glob(<pattern>); scalar @res
1_10k
10_10k
100_10k
1k_10k
10k_10k
Run on: perl: v5.24.0, CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (4 cores), OS: GNU/Linux Debian version 8.5, OS kernel: Linux version 3.16.0-4-amd64.
Benchmark with default options (bencher -m Glob):
bencher -m Glob
#table1# +---------+-----------+-----------+------------+---------+---------+ | dataset | rate (/s) | time (ms) | vs_slowest | errors | samples | +---------+-----------+-----------+------------+---------+---------+ | 10k_10k | 110 | 8.8 | 1 | 2.6e-05 | 20 | | 1k_10k | 374 | 2.67 | 3.29 | 4.3e-07 | 20 | | 100_10k | 494 | 2.03 | 4.34 | 4.3e-07 | 20 | | 10_10k | 510 | 1.96 | 4.48 | 2.1e-07 | 20 | | 1_10k | 512 | 1.95 | 4.5 | 2.7e-07 | 20 | +---------+-----------+-----------+------------+---------+---------+
To display as an interactive HTML table on a browser, you can add option --format html+datatables.
--format html+datatables
Please visit the project's homepage at https://metacpan.org/release/Bencher-Scenario-Glob.
Source repository is at https://github.com/perlancar/perl-Bencher-Scenario-Glob.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-Scenario-Glob
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.
perlancar <perlancar@cpan.org>
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.
To install Bencher::Scenario::Glob, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bencher::Scenario::Glob
CPAN shell
perl -MCPAN -e shell install Bencher::Scenario::Glob
For more information on module installation, please visit the detailed CPAN module installation guide.