Script Preparation code:
AخA
 
var obj = {
    "one": null,
    "two": null,
}
Tests:
  • Delete Existing, No Check

     
    delete obj["two"]
  • Delete Existing, Check

     
    if (obj["two"] !== undefined) {
      delete obj["two"]
    }
  • Delete Nonexisting, No Check

     
    delete obj["three"]
  • Delete Nonexisting, Check

     
    if (obj["two"] !== undefined) {
      delete obj["three"]
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Delete Existing, No Check
    Delete Existing, Check
    Delete Nonexisting, No Check
    Delete Nonexisting, Check

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Chrome 97 on Windows
View result in a separate tab
Test name Executions per second
Delete Existing, No Check 11336077.0 Ops/sec
Delete Existing, Check 6281679.0 Ops/sec
Delete Nonexisting, No Check 10641756.0 Ops/sec
Delete Nonexisting, Check 6305477.5 Ops/sec