Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Chrome 131
Mac OS X 10.15.7
Desktop
one year ago
for..of (reduce) (destructuring)
32/s
.for (init array)
27/s
.reduce
25/s
.forEach
25/s
for..of (reduce)
24/s
.reduce (destructuring)
24/s
for..of
23/s
for..of (destructuring)
16/s
.map (destructuring)
13/s
.map
13/s
View exact numbers
Test name Executions per second
for..of (reduce) (destructuring) 32 Ops/sec
.for (init array) 27 Ops/sec
.reduce 25 Ops/sec
.forEach 25 Ops/sec
for..of (reduce) 24 Ops/sec
.reduce (destructuring) 24 Ops/sec
for..of 23 Ops/sec
for..of (destructuring) 16 Ops/sec
.map (destructuring) 13 Ops/sec
.map 13 Ops/sec
Script Preparation code:
Tests: