forEach vs spread operatorFastest: forEach (1.8x faster)
46,222,144 ops/sec
26,313,332 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| forEach | |
| spread operator |
| Test name | Executions per second |
|---|---|
| ✓ forEach | 70,159,248 Ops/sec |
| spread operator | 31,698,078 Ops/sec |