NAME
Bencher::Scenario::Glob - Benchmark glob()
VERSION
This document describes version 0.001 of Bencher::Scenario::Glob (from Perl distribution Bencher-Scenario-Glob), released on 2017-06-11.
SYNOPSIS
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
.
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
glob (perl_code)
Code template:
my @res = glob(<pattern>); scalar @res
BENCHMARK DATASETS
1_10k
10_10k
100_10k
1k_10k
10k_10k
SAMPLE BENCHMARK RESULTS
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
):
#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
.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Bencher-Scenario-Glob.
SOURCE
Source repository is at https://github.com/perlancar/perl-Bencher-Scenario-Glob.
BUGS
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.
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.