Set length to zero vs New empty array47,083 ops/sec
46,924 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Set length to zero | |
| New empty array |
| Test name | Executions per second |
|---|---|
| ✓ New empty array | 13,432 Ops/sec |
| Set length to zero | 12,099 Ops/sec |