Are you telling me that I'm a layer?

No! I'm saying that you are mistaken. That your benchmark is flawed and as a consequence you are comparing apples and oranges; and on that basis, you are adding 2+2 and getting 3 1.5

It's quite simple. You have a cost for Thread::Queue (call it A). You have an additional cost for Thread::Queue::Any (namely Storable), call that B.

A can never be greater than A+B.

Unless B is negative; in which case you have discovered the programming equivalent of perpectual motion!

Something is afoot. But you're seeing it as a hand or an elbow or some such, because your results do not make sense. I cannot reproduce your results; nor understand how you could be getting them.

I'm not calling you a liar. I'm suggesting to you that when the results seem too good (or too bad) to be true; they usually are. And cautioning you to look very closely at what your code is actually doing.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP PCW

In reply to Re^5: Thread::Queue vs Thread::Queue::Any by BrowserUk
in thread Thread::Queue vs Thread::Queue::Any by gulden

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.