Skip to content
master
Switch branches/tags
Code
This branch is 2 commits ahead of perlpilot:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
t
 
 
 
 
 
 
 
 
=head1 Name

Benchmark

=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'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>

About

Simple Raku version of Benchmark.pm

Resources

Releases

No releases published

Packages

No packages published

Languages