NAME
bench - Benchmark running times of Perl code
VERSION
version 0.08
SYNOPSIS
% bench -e 'some_code()' ; # -e is optional
Benchmarking sub { some_code() } ...
26 calls (28.98/s), 0.897s (34.51ms/call)
% bench -MFoo::Bar 'code1()' 'code2()' ; # multiple code
Benchmarking sub { code1() }, sub { code2() } ...
a: 26 calls (28.98/s), 0.897s (34.51ms/call)
b: 14 calls (15.37/s), 0.911s (65.07ms/call)
Fastest is a (1.886x b)
% bench prog.pl; ; # file is automatically detected
Benchmarking /abs/path/to/prog.pl ...
0.0520s
DESCRIPTION
This script is a command-line interface for Bench.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.