Script Preparation code:
AخA
 
var arr = new Array(100000).fill(1).map((_, i) => `hello ${i}`);
Tests:
  • splice

     
    arr.splice( arr.indexOf("hello 15"), 1 )
  • filter

     
    arr.filter(data => data !== 'hello 15')
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    splice
    filter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 13 days ago)
Mozilla/5.0 (Linux; Android 10; MOA-LX9N; HMSCore 6.15.0.301) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.196 HuaweiBrowser/15.0.4.312 Mobile Safari/537.36
Chrome 114 on Android
View result in a separate tab
Test name Executions per second
splice 351.9 Ops/sec
filter 44.8 Ops/sec