Marcel Grünauer == hanekomu (跳ね込む) > App-Benchmark-0.03 > App::Benchmark

Download:
App-Benchmark-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.03   Source  

NAME ^

App::Benchmark - Output your benchmarks as test diagnostics

SYNOPSIS ^

    # This is t/benchmark.t:

    use App::Benchmark;

    benchmark_diag(2_000_000, {
        sqrt => sub { sqrt(2) },
        log  => sub { log(2) },
    });

DESCRIPTION ^

This module makes it easy to run your benchmarks in a distribution's test suite. This way you just have to look at the CPAN testers reports to see your benchmarks being run on many different platforms using many different versions of perl.

Ricardo Signes came up with the idea.

FUNCTIONS ^

benchmark_diag

Takes a number of iterations and a benchmark definition hash, just like timethese() from the Benchmark module. Runs the benchmarks and reports them, each line prefixed by a hash sign so it doesn't mess up the TAP output. Also, a pseudotest is being generated to keep the testing framework happy.

This function is exported automatically.

BUGS AND LIMITATIONS ^

No bugs have been reported.

Please report any bugs or feature requests through the web interface at http://rt.cpan.org.

INSTALLATION ^

See perlmodinstall for information and options on installing Perl modules.

AVAILABILITY ^

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.

AUTHORS ^

Marcel Grünauer, <marcel@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright 2008 by Marcel Grünauer

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.