Script Preparation code:
AخA
 
arr = [{a: 1, b: 20}, {a: "c", b: 20}]
Tests:
  • findItem + splice

     
    idx = arr.findIndex(o => o.a === 'c')
    arr.splice(idx, 1)
  • reassignement & filter

     
    arr = arr.filter(o => o.a !== 'c')
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    findItem + splice
    reassignement & filter

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36
Chrome 79 on Mac OS X 10.13.6
View result in a separate tab
Test name Executions per second
findItem + splice 1137923.1 Ops/sec
reassignement & filter 2148896.2 Ops/sec