Array.split vs Substring7,898,761 ops/sec
7,544,518 ops/sec
Fastest: Substring (90.9x faster)
752,853,568 ops/sec
8,282,308 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Array.split | |
| Substring |
| Test name | Executions per second |
|---|---|
| ✓ Substring | 212,955,264 Ops/sec |
| Array.split | 27,008,956 Ops/sec |