The following block of cmpthese prints are confusing me a bit. If you look at the wallclock seconds there are very large ( 70% to 80% ) differences in time. However, the comparison percentages are 10% or less. Can someone explain to me what I am misunderstanding?
Benchmark: timing 100 iterations of smMod, smPlain... smMod: 198.103 wallclock secs (20.84 usr + 0.32 sys = 21.16 CPU) + @ 4.72/s (n=100) smPlain: 1013.47 wallclock secs (22.88 usr + 0.39 sys = 23.27 CPU) + @ 4.30/s (n=100) Rate smPlain smMod smPlain 4.30/s -- -9% smMod 4.72/s 10% -- Benchmark: timing 100 iterations of seMod, sePlain... seMod: 161.968 wallclock secs (65.76 usr + 0.42 sys = 66.18 CPU) + @ 1.51/s (n=100) sePlain: 435.528 wallclock secs (71.20 usr + 0.43 sys = 71.62 CPU) + @ 1.40/s (n=100) Rate sePlain seMod sePlain 1.40/s -- -8% seMod 1.51/s 8% -- Benchmark: timing 100 iterations of navMod, navPlain... navMod: 77.0209 wallclock secs (14.74 usr + 0.20 sys = 14.95 CPU) + @ 6.69/s (n=100) navPlain: 317.475 wallclock secs (14.70 usr + 0.38 sys = 15.09 CPU) + @ 6.63/s (n=100) Rate navPlain navMod navPlain 6.63/s -- -1% navMod 6.69/s 1% --
As a note, in case anybody wonders or it is relevant, the different functions are requesting the same pages from two different servers. One is running mod_perl and the other is vanilla CGI. Thanks in advance

In reply to Benchmark.pm ing -- and a little confused by Sifmole

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.