Simple Perl 6 version of Benchmark.pm
Perl6
Latest commit f0fa2fb Feb 18, 2016 @perlpilot Merge pull request #7 from stmuk/master
add use MONKEY-SEE-NO-EVAL
Permalink
Failed to load latest commit information.
examples example using edit distances and a result table Nov 5, 2014
lib add use MONKEY-SEE-NO-EVAL Feb 17, 2016
t Use adverbial :exists Sep 4, 2014
.gitignore ignore the ufo-generated Makefile Jul 2, 2010
META.info add provides section for latest panda (S11 support) Mar 29, 2015
README

README

=head1 Name

Benchmark.pm6

=head1 Synopsis

    use v6;
    use Benchmark;

    my ($start,$end,$diff,$avg) = timethis(1000, "code");
    my @stats = timethis(1000, sub { #`( code ) });
    say ~@stats;

    my %results = timethese(1000, {
        "foo" => sub { ... },
        "bar" => sub { ... },
    });
    say ~%results;

=head1 Description

A simple benchmarking module with an interface similar to Perl 5's
Benchmark.pm.  However, rather than output results to $*OUT, the results
are merely returned so that you can output them however you please.

=head1 Author

Jonathan Scott Duff <duff@pobox.com>