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..of (reduce) (destructuring)
54/s
for..of (reduce)
54/s
for..of
54/s
.for (init array)
53/s
.forEach
51/s
.map
48/s
for..of (destructuring)
48/s
.map (destructuring)
48/s
.reduce
47/s
.reduce (destructuring)
47/s
View exact numbers
Test name Executions per second
for..of (reduce) (destructuring) 54 Ops/sec
for..of (reduce) 54 Ops/sec
for..of 54 Ops/sec
.for (init array) 53 Ops/sec
.forEach 51 Ops/sec
.map 48 Ops/sec
for..of (destructuring) 48 Ops/sec
.map (destructuring) 48 Ops/sec
.reduce 47 Ops/sec
.reduce (destructuring) 47 Ops/sec
Script Preparation code:
Tests: