Please, provide tests for browsers, at least Chrome.
I decided to recreate the tests myself and I found out that results are different for browsers.
It seems that reduce has either the same performance as for..of or even better!
Also, please redo tests for Node 20LTS, which is latest, node recently got optimization updates, maybe you will get similar results to browsers environment.
Please, provide tests for browsers, at least Chrome.
I decided to recreate the tests myself and I found out that results are different for browsers.
It seems that
reducehas either the same performance asfor..ofor even better!Also, please redo tests for Node 20LTS, which is latest, node recently got optimization updates, maybe you will get similar results to browsers environment.