Script Preparation code:
Tests:

Historical Performance Data aggregated from 50 community runs

Desktop Results:
Chrome 41 runs
string split
10.9M/s
Array.from
4.6M/s

Fastest: string split (2.4x faster)

View exact numbers
  • string split: 10,907,083 ops/sec
  • Array.from: 4,584,648 ops/sec
Firefox 9 runs
string split
12.0M/s
Array.from
2.9M/s

Fastest: string split (4.1x faster)

View exact numbers
  • string split: 11,959,272 ops/sec
  • Array.from: 2,925,023 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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 Edg/148.0.0.0
Chrome 148 on Windows
View result in a separate tab
string split
27.2M/s
Array.from
13.3M/s
View exact numbers
Test name Executions per second
string split 27,166,292 Ops/sec
Array.from 13,331,465 Ops/sec