So, the original p5 code was:
#!/usr/bin/perl -w
my $i = 0;
my @numbers;
until ( $i == 100000 ) {
$numbers[$i] = $i;
$i++;
}
p6 code was:
use v6;
my Int $i = 0;
my @numbers;
until ( $i == 100000 ) {
@numbers[$i] = $i;
$i++;
}
OP gave the following one-shot benchmark numbers:
Perl5: ~0.07s to complete, uses 26KB RAM at completion.
Rakudo Perl6: ~1m14s to complete, uses 1.4GB RAM at completion.
