Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
Firefox 125
Ubuntu
Desktop
2 years ago
.reduce (destructuring)
32/s
for..of (reduce) (destructuring)
30/s
.map (destructuring)
25/s
for..of (destructuring)
24/s
View exact numbers
| Test name |
Executions per second |
|
✓
.reduce
|
32 Ops/sec |
|
.reduce (destructuring)
|
32 Ops/sec |
|
.forEach
|
31 Ops/sec |
|
for..of (reduce)
|
31 Ops/sec |
|
for..of (reduce) (destructuring)
|
30 Ops/sec |
|
for..of
|
30 Ops/sec |
|
.for (init array)
|
27 Ops/sec |
|
.map (destructuring)
|
25 Ops/sec |
|
.map
|
25 Ops/sec |
|
for..of (destructuring)
|
24 Ops/sec |
Tests:
-
.forEach
-
for..of
-
for..of (destructuring)
-
.map
-
.map (destructuring)
-
.for (init array)
-
.reduce
-
.reduce (destructuring)
-
for..of (reduce)
-
for..of (reduce) (destructuring)