Test case name | Result |
---|---|
for i < length | |
.forEach(t) | |
for..of | |
for t = array[i] | |
for i=0; i in array | |
for i in array, | |
.reduce |
Test name | Executions per second |
---|---|
for i < length | 12.6 Ops/sec |
.forEach(t) | 10.2 Ops/sec |
for..of | 10.5 Ops/sec |
for t = array[i] | 12.4 Ops/sec |
for i=0; i in array | 13.0 Ops/sec |
for i in array, | 11.4 Ops/sec |
.reduce | 9.4 Ops/sec |