"Avoid Premature Optimization" by Victor Zhou https://victorzhou.com/blog/avoid-premature-optimization/
This is why I'm always skeptical of JavaScript microbenchmarks. Your hot paths are probably not array iteration. (They might be, though! Always measure.)