Script Preparation code:
AخA
 
var master = Array(1000).fill(null).map((a, b) => b);
var a = [...master];
var o = [];
master.forEach(x => { o[x] = x })
Tests:
  • Set

     
    var s = new Set(master);
    master.forEach(x => s.delete(x));
  • Array

     
    master.forEach(x => a.splice(a.indexOf(x), 1));
  • Object

     
    master.forEach(x => delete o[x]);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Set
    Array
    Object

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.162 Safari/537.36
Chrome 100 on Windows
View result in a separate tab
Test name Executions per second
Set 10558.5 Ops/sec
Array 2712.4 Ops/sec
Object 3344.0 Ops/sec