Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
endWith
111.8M/s
slice
76.9M/s

Fastest: endWith (1.5x faster)

View exact numbers
  • endWith: 111,756,520 ops/sec
  • slice: 76,903,984 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
    endWith
    slice

    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/138.0.0.0 Safari/537.36
Chrome 138 on Windows
View result in a separate tab
endWith
202.9M/s
slice
133.6M/s
View exact numbers
Test name Executions per second
endWith 202,939,184 Ops/sec
slice 133,551,072 Ops/sec