Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

My results from gam3's script, second version:

/dev/null
                Rate        for     whyfor      while while_list   for_list
for         280029/s         --       -16%       -17%       -73%       -74%
whyfor      333697/s        19%         --        -1%       -68%       -69%
while       338448/s        21%         1%         --       -68%       -69%
while_list 1050567/s       275%       215%       210%         --        -3%
for_list   1079903/s       286%       224%       219%         3%         --
/usr/share/dict/words
             Rate        for     whyfor while_list      while   for_list
for        3.67/s         --       -39%       -41%       -42%       -51%
whyfor     5.99/s        63%         --        -4%        -5%       -21%
while_list 6.26/s        71%         5%         --        -0%       -17%
while      6.27/s        71%         5%         0%         --       -17%
for_list   7.56/s       106%        26%        21%        21%         --
/etc/passwd
              Rate     whyfor        for while_list      while   for_list
whyfor     13584/s         --       -13%       -17%       -30%       -56%
for        15664/s        15%         --        -5%       -19%       -49%
while_list 16411/s        21%         5%         --       -15%       -47%
while      19273/s        42%        23%        17%         --       -38%
for_list   30882/s       127%        97%        88%        60%         --

In reply to Re^2: Why is "for" much slower than "while"? by Xiong
in thread Why is "for" much slower than "while"? by di

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!
  • 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, 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, 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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chilling in the Monastery: (12)
    As of 2015-07-02 10:23 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (33 votes), past polls