Test case name | Result |
---|---|
lodash forEach | |
Array.prototype.forEach() | |
Traditional for loop | |
Custom Array.prototype.forEach() |
Test name | Executions per second |
---|---|
lodash forEach | 93.9 Ops/sec |
Array.prototype.forEach() | 111.0 Ops/sec |
Traditional for loop | 51.3 Ops/sec |
Custom Array.prototype.forEach() | 128.3 Ops/sec |