README

NAME

Benchmark - Simple benchmarking

SYNOPSIS

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;

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.

AUTHOR

Jonathan Scott Duff

COPYRIGHT AND LICENSE

Copyright 2009 - 2016 Jonathan Scott Duff

Copyright 2017 - 2022 Raku Community

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

Benchmark v1.0

Simple benchmarking

Authors

  • Jonathan Scott Duff
  • Raku Community

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Benchmark

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.