Skip to content
Browse files

Add a readme

  • Loading branch information...
1 parent a797ab8 commit 94f8746935e49b4a7869f2532f0c9374a9fe5170 @perlpilot committed Jul 2, 2010
Showing with 29 additions and 0 deletions.
  1. +29 −0 README
View
29 README
@@ -0,0 +1,29 @@
+=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>
+

0 comments on commit 94f8746

Please sign in to comment.
Something went wrong with that request. Please try again.