Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36
Chrome 71
Linux
Desktop
6 years ago
Test name Executions per second
instanceOf 3302617.2 Ops/sec
hasOwnProperty 10371725.0 Ops/sec
Script Preparation code:
AخA
 
var obj = {a: 1}
Tests:
  • instanceOf

     
    obj instanceof Object
  • hasOwnProperty

     
    obj.hasOwnProperty('b')