in reply to Re: Perl 6 and performance
in thread Perl 6 and performance
Note I'm using a million iterations to make the times more accurate to compare. The output was:echo %time% - perl5 call c:\strawberry_perl\portableshell.bat -E "my $s; for ( 1..1000000 +) { $s+=1/$_**2 }; say $s" echo !time! echo %time% - perl6 call perl6 -e "my $s; for ( 1..1000000 ) { $s+=1/$_**2 }; say $s" echo %time%
So, perl5 took .5 sec and perl6 took 11.4 secs, making perl6 almost 23 times slower than perl5. I really hope this is improved on in subsequent releases of perl6. John14:03:07.14 - perl5 1.64493306684877 14:03:07.64 14:03:07.65 - perl6 1.64493306684877 14:03:19.05
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perl 6 and performance
by BrowserUk (Patriarch) on Feb 27, 2016 at 02:59 UTC | |
Re^3: Perl 6 and performance
by coke (Acolyte) on Feb 29, 2016 at 17:41 UTC | |
Re^3: Perl 6 and performance
by Your Mother (Archbishop) on Feb 26, 2016 at 20:21 UTC |