Script Preparation code:
Tests:

Historical Performance Data aggregated from 63 community runs

Desktop Results:
Chrome 51 runs
split
11.1M/s
slice
6.3M/s

Fastest: split (1.8x faster)

View exact numbers
  • split: 11,120,088 ops/sec
  • slice: 6,272,784 ops/sec
Firefox 12 runs
slice
5.5M/s
split
4.0M/s

Fastest: slice (1.4x faster)

View exact numbers
  • slice: 5,482,376 ops/sec
  • split: 4,000,243 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
    split

    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
split
6.7M/s
slice
3.0M/s
View exact numbers
Test name Executions per second
split 6,738,224 Ops/sec
slice 2,997,285 Ops/sec