examples/benchmarks/addit.pl - Variable Argument Subroutines
% time perl examples/benchmarks/addit.pl
Joe Wilson's original Perl version of his varargs subroutines benchmark. It calls an "add it" function 500000 times in a loop and prints the result (21001097.97).
varargs
examples/benchmarks/addit.pasm, examples/benchmarks/addit.pir, examples/benchmarks/addit2.pir.
To install Parrot::Op, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parrot::Op
CPAN shell
perl -MCPAN -e shell install Parrot::Op
For more information on module installation, please visit the detailed CPAN module installation guide.