Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134
Mac OS X 10.15
Desktop
one year ago
.for (init array)
86/s
for..of (reduce) (destructuring)
84/s
for..of (reduce)
84/s
for..of
84/s
.forEach
84/s
.map (destructuring)
77/s
.map
77/s
for..of (destructuring)
75/s
.reduce (destructuring)
72/s
.reduce
71/s
View exact numbers
Test name Executions per second
.for (init array) 86 Ops/sec
for..of (reduce) (destructuring) 84 Ops/sec
for..of (reduce) 84 Ops/sec
for..of 84 Ops/sec
.forEach 84 Ops/sec
.map (destructuring) 77 Ops/sec
.map 77 Ops/sec
for..of (destructuring) 75 Ops/sec
.reduce (destructuring) 72 Ops/sec
.reduce 71 Ops/sec
Script Preparation code:
Tests: