Open SiriusStarr opened 4 years ago
Hm I'm struggling to reproduce this.
I see much smaller variance (the largest I observed was -2.4%) on both Chrome and Safari. The second was usually the slower one, but occasionally the faster one.
(Today on NixOS, over about 20 runs each, with String.reverse
)
Tried using elm 0.19.0 and also v1.0.1 of benchmark
and behavior is similar, so it doesn't seem to have been altered by either of those updates. I might have been on Fedora rather than NixOS at the time, but don't remember as it was a year and a half ago.
This is apparently very specific to the individual's computer, so may be challenging to reproduce/track down. :disappointed:
With the use of
compare
, if identical functions are supplied, the second will reproducibly benchmark ~10-30% faster than the first, regardless of what the functions are.SSCCE:
and some results for various functions in
myFunction
:This behavior extends to more complex functions as well, just presenting simple ones here so as to eliminate variables.