And here's an update comparing "Christmas Perl6", aka v6.c, aka rakudo star 2016.01.1 to Strawberry Perl 5.16.3, using a bat script on Windows 7:
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%
Note I'm using a million iterations to make the times more accurate to compare.
The output was:
14:03:07.14 - perl5
1.64493306684877
14:03:07.64
14:03:07.65 - perl6
1.64493306684877
14:03:19.05
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.
John
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.