lodash.forEach vs native for vs native forEachFastest: native forEach (2.8x faster)
43,974,404 ops/sec
32,468,874 ops/sec
15,800,462 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| lodash.forEach | |
| native for | |
| native forEach |
| Test name | Executions per second |
|---|---|
| ✓ native for | 138,886,976 Ops/sec |
| native forEach | 74,817,680 Ops/sec |
| lodash.forEach | 66,557,124 Ops/sec |