Thanks for pointing that out! I knew something was wrong with those numbers, but for the life of me, couldn't figure out what. Tossing in a print statement to check the return value obviously didn't help things :-)

Regarding my sort routine, if you run my updated version (your scores look like the original) on a Perl 5.6.1, you should find that it's the fastest until about 10,000 elements, at which point arhuman's begins to take the lead:

Comparing for 1000 elements Rate myo st tye ah mc myo 18.4/s -- -61% -72% -78% -83% st 46.9/s 154% -- -29% -43% -58% tye 66.5/s 261% 42% -- -20% -40% ah 82.7/s 348% 76% 24% -- -25% mc 111/s 500% 136% 66% 34% -- Comparing for 2500 elements Rate myo st tye ah mc myo 7.46/s -- -54% -69% -76% -78% st 16.3/s 118% -- -32% -47% -51% tye 24.0/s 222% 48% -- -22% -28% ah 31.0/s 315% 90% 29% -- -8% mc 33.5/s 349% 106% 39% 8% -- Comparing for 10000 elements Rate myo st tye mc ah myo 1.36/s -- -53% -68% -76% -78% st 2.88/s 112% -- -33% -49% -55% tye 4.29/s 214% 49% -- -25% -32% mc 5.69/s 317% 97% 33% -- -10% ah 6.34/s 365% 120% 48% 12% --
Perl 5.6 gives rather different results though...
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

In reply to Re: (tye)Re3: Substring Sort by MeowChow
in thread Substring Sort by Anonymous 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.