I was puzzled slightly by this bit in the pod:
(Note that while each case runs in a separate process, all of the repetitions of any one case are run together.)
Does that mean that the cases are run serially (as in the original Benchmark approach) -- that is, case #2 doesn't start until case #1 is finished?

That might be a dumb question, because I don't have any experience using a two-arg open where the second arg is "-|" -- perdoc -f open doesn't discuss this usage directly, and I must confess I'm baffled as to how you are actually making it work here. You might consider including a brief explanation (either as pod or as "#" comments in the code). (Update: thanks for the correction, simonm -- I had missed that part of the docs earlier.)

Anyway, I'm asking about serial-vs-concurrent execution because forking could allow multiple sub-processes to run simultaneously -- and even though they are independent processes, they will typically be sharing a single cpu, which means that the timing report that comes back could depend on the number of cases being tested.

Also, if the jobs are concurrent, this would place constraints on what the test code can do in terms of file i/o -- the user would have be careful to use different file names for each case (especially on output files, though using the same input file could throw off the stats due to low-level caching in the hardware or the OS).

Minor nit -- when I read the post, the second paragraph under "DESCRIPTION" in the pod ended with "In some cases" -- either you meant to finish the sentence or you meant to delete those three words (but you didn't do it yet).


In reply to Re: Forking Benchmarks? by graff
in thread Forking Benchmarks? by simonm

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.