Set length to zero vs Splice36,026 ops/sec
33,574 ops/sec
52,847 ops/sec
49,751 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 | |
| Splice |
| Test name | Executions per second |
|---|---|
| ✓ Splice | 111,544 Ops/sec |
| Set length to zero | 103,891 Ops/sec |