| »»» This post is about alpha status Perl 6, not rock solid Perl 5 ««« |
I just encountered this post (thanks hippo) and thought an update would be helpful.
The OP suggests that running this "benchmark" with the initial Rakudo Star release from 2010 was about 4000x slower than Perl 5.
Now, 5 years later, a current Rakudo looks like it's something like 50x slower than a current Perl 5 for this particular "benchmark". (The bogus behaviors -- NaNs and quadratic slow down -- have of course been fixed.)
raiph@hack:~$ time perl6 -e 'my $s; for 1..10000 {$s+=1/$_**2};say $s' 1.64483407184807 real 0m0.355s user 0m0.316s sys 0m0.036s raiph@hack:~$ time perl -E 'my $s; for (1..10000) {$s+=1/$_**2};say $s +' 1.64483407184807 real 0m0.007s user 0m0.004s sys 0m0.000s
»ö« . o O ( "the celebrity tell-all of the Perl-6 cult?" )
In reply to Re: Perl 6 and performance
by raiph
in thread Perl 6 and performance
by kikuchiyo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |