NAME Bencher::Scenario::AppSorted - Benchmark sorted vs is-sorted VERSION This document describes version 0.001 of Bencher::Scenario::AppSorted (from Perl distribution Bencher-Scenario-AppSorted), released on 2020-05-24. SYNOPSIS To run benchmark with default option: % bencher -m AppSorted To run module startup overhead benchmark: % bencher --module-startup -m AppSorted 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. App::sorted 0.001 File::IsSorted 0.0.3 BENCHMARK PARTICIPANTS * sorted (command) Command line: #TEMPLATE: sorted ; true * is-sorted (command) Command line: #TEMPLATE: is-sorted check ; true BENCHMARK DATASETS * 100k-sorted * 100k-unsorted-middle * 100k-unsorted-beginning SAMPLE BENCHMARK RESULTS Run on: perl: *v5.30.0*, CPU: *Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (2 cores)*, OS: *GNU/Linux Ubuntu version 19.10*, OS kernel: *Linux version 5.3.0-46-generic*. Benchmark with default options ("bencher -m AppSorted"): #table1# +-------------+-------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+ | participant | dataset | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples | +-------------+-------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+ | sorted | 100k-sorted | 7.4 | 140 | 0.00% | 93.01% | 0.00026 | 11 | | sorted | 100k-unsorted-middle | 9.2 | 110 | 25.42% | 53.89% | 0.00014 | 7 | | is-sorted | 100k-sorted | 12 | 85 | 60.86% | 19.99% | 0.00032 | 7 | | sorted | 100k-unsorted-beginning | 12 | 82 | 66.10% | 16.20% | 0.00019 | 7 | | is-sorted | 100k-unsorted-middle | 13 | 79 | 72.72% | 11.75% | 0.00014 | 7 | | is-sorted | 100k-unsorted-beginning | 14 | 70 | 93.01% | 0.00% | 7.1e-05 | 7 | +-------------+-------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+ Benchmark module startup overhead ("bencher -m AppSorted --module-startup"): #table2# +---------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+ | participant | time (ms) | mod_overhead_time | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples | +---------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+ | File::IsSorted | 35 | 29.4 | 0.00% | 525.86% | 5.5e-05 | 7 | | App::sorted | 8.2 | 2.6 | 325.09% | 47.23% | 1.4e-05 | 7 | | perl -e1 (baseline) | 5.6 | 0 | 525.86% | 0.00% | 2e-05 | 7 | +---------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+ 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 . SOURCE Source repository is at . BUGS Please report any bugs or feature requests on the bugtracker website 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 COPYRIGHT AND LICENSE This software is copyright (c) 2020 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.