NAME
bencher-tiny - Simple script to run benchmark scenario with Benchmark.pm
VERSION
This document describes version 0.003 of bencher-tiny (from Perl distribution Bencher-Tiny), released on 2016-10-20.
SYNOPSIS
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)
DESCRIPTION
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.
EXIT CODES
0 on success.
99 on command-line options error.
OPTIONS
--count=i, -c
Specify count to pass to cmpthese()
.
--timethese
Use timethese()
instead of cmpthese()
.
--cmpthese
Use cmpthese()
(the default, so normally it is not necessary to use this option).
ENVIRONMENT
DEBUG => bool
Will print debug messages when set to true.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Bencher-Tiny.
SOURCE
Source repository is at https://github.com/perlancar/perl-Bencher-Tiny.
BUGS
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.
SEE ALSO
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.