Script Preparation code:
Tests:

Historical Performance Data aggregated from 137 community runs

Desktop Results:
Chrome 114 runs
Array.split
7.9M/s
Substring
7.5M/s
View exact numbers
  • Array.split: 7,898,761 ops/sec
  • Substring: 7,544,518 ops/sec
Firefox 23 runs
Substring
752.9M/s
Array.split
8.3M/s

Fastest: Substring (90.9x faster)

View exact numbers
  • Substring: 752,853,568 ops/sec
  • Array.split: 8,282,308 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.split
    Substring

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Chrome 146 on Windows
View result in a separate tab
Substring
213.0M/s
Array.split
27.0M/s
View exact numbers
Test name Executions per second
Substring 212,955,264 Ops/sec
Array.split 27,008,956 Ops/sec