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

My considered assessment is that in order to be able to support the needs of MOP, and installable parsers, the levels of indirection required within the opcode tree are such that Perl6 will never be able to achieve the performance of Perl5; much less (uncompiled) Java and similar.

From my brief appraisals of the performance it currently achieves, and an even more brief exploration of the source code, I think it quite unlikely that the Perl6 syntax will ever be able to get within an order of magnitude of Perl5 performance as a purely interpreted language. I think it would require a full optimising compiler to achieve any real breakthrough in its performance.

It is possible that a JIT compiler could fold out some of the indirections, but I suspect that it would require serious machine level skills on each targeted platform for that to be achieved.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^3: Perl 6 and performance by BrowserUk
in thread Perl 6 and performance by kikuchiyo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.