Script Preparation code:
Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Chrome 9 runs
string split
13.9M/s
spread operator
11.9M/s
Array.from
5.3M/s

Fastest: string split (2.6x faster)

View exact numbers
  • string split: 13,929,835 ops/sec
  • spread operator: 11,852,484 ops/sec
  • Array.from: 5,268,676 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.from
    string split
    spread operator

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Chrome 143 on Mac OS X 10.15.7
View result in a separate tab
string split
42.1M/s
spread operator
21.3M/s
Array.from
19.8M/s
View exact numbers
Test name Executions per second
string split 42,067,400 Ops/sec
spread operator 21,347,024 Ops/sec
Array.from 19,849,134 Ops/sec