Script Preparation code:
x
 
var set = new Set();
var object = {};
var array = new Array(5000).fill().map((_, i) => i);
for (let i = 0; i < array.length; i++) {
  object[i] = true;
}
for (let i = 0; i < array.length; i++) {
  set.add(i);
}
Tests:
  • Object

     
    delete object[40]
  • Set

     
    set.delete(40)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Object
    Set

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Android 14; Mobile; rv:130.0) Gecko/130.0 Firefox/130.0
Firefox Mobile 130 on Android
View result in a separate tab
Test name Executions per second
Object 48074272.0 Ops/sec
Set 36277352.0 Ops/sec