Steven Haryanto > Bench > bench

Download:
Bench-0.10.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

bench - Benchmark running times of Perl code

VERSION ^

This document describes version 0.10 of bench (from Perl distribution Bench), released on 2014-05-14.

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.

For all available options, try bench -h.

HOMEPAGE ^

Please visit the project's homepage at https://metacpan.org/release/Bench.

SOURCE ^

Source repository is at https://github.com/sharyanto/perl-Bench.

BUGS ^

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bench

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 ^

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 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.

syntax highlighting: