Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Mobile Safari/537.36
Chrome Mobile 129
Android
Mobile
one year ago
.for (init array)
18/s
.reduce (destructuring)
16/s
for..of (reduce) (destructuring)
16/s
.reduce
16/s
for..of (reduce)
15/s
for..of
15/s
for..of (destructuring)
11/s
.map (destructuring)
10/s
.forEach
9/s
.map
9/s
View exact numbers
Test name Executions per second
.for (init array) 18 Ops/sec
.reduce (destructuring) 16 Ops/sec
for..of (reduce) (destructuring) 16 Ops/sec
.reduce 16 Ops/sec
for..of (reduce) 15 Ops/sec
for..of 15 Ops/sec
for..of (destructuring) 11 Ops/sec
.map (destructuring) 10 Ops/sec
.forEach 9 Ops/sec
.map 9 Ops/sec
Script Preparation code:
Tests: