Script Preparation code:
AخA
 
var obj = { a: 1, b: 2, c: 3, d: { a: 1, b: 2, b: 3, d: 4 }, e: 5 };
Tests:
  • undefined

     
    if(obj.d){};
  • hasOwnProperty

     
    if(obj.hasOwnProperty('d')){}
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    undefined
    hasOwnProperty

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Chrome 66 on Windows
View result in a separate tab
Test name Executions per second
undefined 11477141.0 Ops/sec
hasOwnProperty 10355386.0 Ops/sec