in reply to Perl 6 and performance
»»» 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?" )
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl 6 and performance
by Anonymous Monk on Feb 26, 2016 at 19:59 UTC | |
by BrowserUk (Patriarch) on Feb 27, 2016 at 02:59 UTC | |
by coke (Acolyte) on Feb 29, 2016 at 17:41 UTC | |
by Your Mother (Archbishop) on Feb 26, 2016 at 20:21 UTC |