Today it is (time in seconds needed to parse 10_000 lines of CSV with 5 fields each):

Perl5 0.016 Text::CSV::Easy_XS 0.016 Text::CSV::Easy_PP 0.033 Text::CSV_XS using bind_columns () 0.037 Text::CSV_XS 0.504 Text::CSV_PP (Text::CSV) 1.295 Pegex::CSV Perl6 17.474 Inline::Perl5 + Text::CSV_XS line-based 17.057 Inline::Perl5 + Text::CSV_XS IO-based 18.182 Inline::Perl5 + Text::CSV_PP (perl5's Text::CSV) 13.577 Text::CSV (perl6's Text::CSV) 49.948 CSV::Parser

There are plans to work on optimizing NativeCall soonish, so all timings using Inline::Perl5 might speed up because of that.

The timings for Text::CSV::Easy_?? are timing the use of a module that only parses 100% valid CSV. It offers no options to deal with abnormalities.

Given these numbers, we (the perl6 community) still need an overall performance gain of a factor 27 (13.6 → 0.5) to be able to say that pure-perl modules in perl6 are as fast as comparable pure-perl modules in perl5.

Personally I don't envision perl6 becoming as fast as perl5 with dedicated XS code, as Text::CSV_XS, at least not in the foreseeable future.


Enjoy, Have FUN! H.Merijn

In reply to Re^3: Perl 6.0.0 is out - merry X-mas! by Tux
in thread Perl 6.0.0 is out - merry X-mas! by Happy-the-monk

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.