Script Preparation code:
Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 10 runs
substring
2.7M/s
slice
2.7M/s
split
72K/s

Fastest: substring (37.3x faster)

View exact numbers
  • substring: 2,678,132 ops/sec
  • slice: 2,656,463 ops/sec
  • split: 71,740 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
    slice
    substring
    split

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 YaBrowser/25.2.0.0 Safari/537.36
Yandex Browser 25 on Windows
View result in a separate tab
substring
6.3M/s
slice
6.0M/s
split
37K/s
View exact numbers
Test name Executions per second
substring 6,290,109 Ops/sec
slice 6,039,407 Ops/sec
split 37,074 Ops/sec