bencher-tiny - Simple script to run benchmark scenario with Benchmark.pm
This document describes version 0.003 of bencher-tiny (from Perl distribution Bencher-Tiny), released on 2016-10-20.
After you install Bencher::Scenario::RefUtil:
% bencher-tiny -c 10000 RefUtil Rate reftype(ARRAY) is_plain_arrayref is_arrayref ref(ARRAY) reftype(ARRAY) 11905/s -- -36% -42% -43% is_plain_arrayref 18519/s 56% -- -9% -11% is_arrayref 20408/s 71% 10% -- -2% ref(ARRAY) 20833/s 75% 12% 2% -- % bencher-tiny -c 10000 RefUtil --timethese Benchmark: timing 10000 iterations of is_arrayref, is_plain_arrayref, ref(ARRAY), reftype(ARRAY)... is_arrayref: 1 wallclock secs ( 0.48 usr + 0.00 sys = 0.48 CPU) @ 20833.33/s (n=10000) is_plain_arrayref: 0 wallclock secs ( 0.51 usr + 0.00 sys = 0.51 CPU) @ 19607.84/s (n=10000) ref(ARRAY): 1 wallclock secs ( 0.49 usr + 0.00 sys = 0.49 CPU) @ 20408.16/s (n=10000) reftype(ARRAY): 1 wallclock secs ( 0.84 usr + 0.00 sys = 0.84 CPU) @ 11904.76/s (n=10000)
bencher is a simple script to run benchmark scenario with Benchmark (Benchmark.pm). It lacks bencher features like filtering participants/datasets/modules, listing participants/datasets or other actions. But it is small and does not have any non-core dependency.
0 on success.
99 on command-line options error.
Specify count to pass to cmpthese().
cmpthese()
Use timethese() instead of cmpthese().
timethese()
Use cmpthese() (the default, so normally it is not necessary to use this option).
Will print debug messages when set to true.
Please visit the project's homepage at https://metacpan.org/release/Bencher-Tiny.
Source repository is at https://github.com/perlancar/perl-Bencher-Tiny.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-Tiny
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.
bencher
perlancar <perlancar@cpan.org>
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.
To install Bencher::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bencher::Tiny
CPAN shell
perl -MCPAN -e shell install Bencher::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.