Script Preparation code:
AخA
 
var test=Array.from({length: 100000},() => Math.random())
Tests:
  • slice

     
    [...test.slice(0,50),...test.slice(51)]
  • filter

     
    test.filter((e,i)=>i!=50)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    slice
    filter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78 on Linux
View result in a separate tab
Test name Executions per second
slice 531.4 Ops/sec
filter 777.2 Ops/sec