I found this interesting nugget to enable win10 ultimate-performance-mode on my laptop...

https://www.windowslatest.com/2018/04/20/enable-ultimate-performance-mode-in-windows-10

it makes my laptop fan stay on...
It did not help the code execution time while I had a browser open
I will try with the browser closed.

Not too much of a difference with browser closed
What really helped to stabilize my results was Turning OFF WIFI

Even then...
There is still too much variance to determine if a new looping structure using a large pre-processed list
is better than 2 loops that created the same list on the fly (using foreach and keys)

I will look more into Benchmark as suggested by bliako


In reply to Re^2: nytprof Profiler gives diverse results by boleary
in thread nytprof Profiler gives diverse results by boleary

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.