Test case name | Result |
---|---|
Array.forEach | |
for(const value of array) | |
index | |
Array.reverse + reversed index |
Test name | Executions per second |
---|---|
Array.forEach | 56870.1 Ops/sec |
for(const value of array) | 71491.7 Ops/sec |
index | 82002.3 Ops/sec |
Array.reverse + reversed index | 77635.3 Ops/sec |