I did a
time perl -pe '$r = substr(rand(), 2); $_ = "$r\t$_"' input | sort -n +| cut -f 2- > dev/null
on the same files, and my results are:
nr of lines          real       user        sys
        100       0m 0.010s  0m 0.010s   0m 0.000s
       1000       0m 0.051s  0m 0.010s   0m 0.030s
      10000       0m 0.264s  0m 0.180s   0m 0.040s
     100000       0m 2.608s  0m 1.640s   0m 0.140s
    1000000       0m40.640s  0m17.550s   0m 1.060s
   10000000      17m14.639s  3m30.830s   0m27.200s

In reply to Re^5: Strategy for randomizing large files via sysseek by Anonymous Monk
in thread Strategy for randomizing large files via sysseek 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.