Test case name | Result |
---|---|
Array.forEach (native) | |
lodash _.each | |
Array.map (native, discarding result) | |
lodash _.map (discarding result) | |
for loop (x of arr) | |
for loop (indexed) |
Test name | Executions per second |
---|---|
Array.forEach (native) | 3555.0 Ops/sec |
lodash _.each | 1002.4 Ops/sec |
Array.map (native, discarding result) | 616.9 Ops/sec |
lodash _.map (discarding result) | 708.2 Ops/sec |
for loop (x of arr) | 6372.2 Ops/sec |
for loop (indexed) | 77.0 Ops/sec |