Benchmark - Benchmark running time of Perl 6 code
#!/usr/bin/pugs use v6; use Benchmark; @t = timeit($count, 'code'); @t = timeit($count, { 1 + 1 }); timethese($count, { hyper => { my @r = @a >>+<< @b }, normal => { my @r = gather { take(@a[$_] + @b[$_]) for 0..@a.end; } } });
many
Chia-liang Kao, <clkao@clkao.org>
Copyright (c) 2005. Chia-liang Kao. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Perl6::Pugs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl6::Pugs
CPAN shell
perl -MCPAN -e shell install Perl6::Pugs
For more information on module installation, please visit the detailed CPAN module installation guide.