# uname -a SunOS host 5.8 Generic_108528-08 sun4u sparc SUNW,Sun-Fire-280R #uptime #shortly before running the test 9:41pm up 103 day(s), 13:13, 131 users, load average: 0.05, 0.07, + 0.11 Benchmark: timing 50 iterations of join, while... join: 2 wallclock secs ( 2.09 usr + 0.03 sys = 2.11 CPU) @ 23 +.64/s (n=50) while: 2 wallclock secs ( 1.87 usr + 0.04 sys = 1.92 CPU) @ 26 +.10/s (n=50) Rate join while join 23.6/s -- -9% while 26.1/s 10% -- #Required more iterations for accuracy on this machine Benchmark: timing 5000 iterations of slurp, sys... slurp: 4 wallclock secs ( 1.61 usr + 2.30 sys = 3.91 CPU) @ 12 +80.08/s (n=5000) sys: 2 wallclock secs ( 0.12 usr + 1.86 sys = 1.99 CPU) @ 25 +16.36/s (n=5000) slurp 1280/s -- -49% sys 2516/s 97% --

--
perl -pe "s/\b;([st])/'\1/mg"


In reply to Re: Re: Re: Reading entire file into scalar: speed differences? by belg4mit
in thread Reading entire file into scalar: speed differences? by theguvnor

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.