G'day choroba,

++ Thanks for checking it out.

The results I originally posted were from: Perl 5.38.0; List::Util 1.63; and, Array::Contains 2.8.

I reran the benchmark with the earliest Perl I have to hand: Perl 5.30.0; List::Util 1.5; and, Array::Contains 2.8.

Rate lua acc lua 14610/s -- -4% acc 15247/s 4% -- Rate lua acc lua 14826/s -- -2% acc 15103/s 2% -- Rate lua acc lua 14821/s -- -3% acc 15318/s 3% --

Those numbers are very close and I'd still consider this to indicate no appreciable difference.

I ran both on:

$ uname -a CYGWIN_NT-10.0-19045 titan 3.4.7-1.x86_64 2023-06-16 14:04 UTC x86_64 +Cygwin

which has the latest 3.4.7 update which I did about two days ago.

Addendum: I just checked those Perl versions with List::Util::XS: XS version installed on both.

— Ken


In reply to Re^6: Where does the spurious error message come from? by kcott
in thread Where does the spurious error message come from? by kikuchiyo

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.