Array.from vs string splitFastest: string split (2.4x faster)
10,907,083 ops/sec
4,584,648 ops/sec
Fastest: string split (4.1x faster)
11,959,272 ops/sec
2,925,023 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Array.from | |
| string split |
| Test name | Executions per second |
|---|---|
| ✓ string split | 27,166,292 Ops/sec |
| Array.from | 13,331,465 Ops/sec |