Script Preparation code:
AخA
 
var array = Array.from({length:500},(v,k)=>k+1);
var i = 250;
Tests:
  • slice

     
    array.slice(0, i).concat(array.slice(i + 1));
  • splice

     
    Array.from(array).splice(i,1);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    slice
    splice

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Chrome 102 on Windows
View result in a separate tab
Test name Executions per second
slice 1256823.0 Ops/sec
splice 1063505.0 Ops/sec