Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:97.0) Gecko/20100101 Firefox/97.0
Firefox 97
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
undefined 972844160.0 Ops/sec
typeof 998069376.0 Ops/sec
in 988998976.0 Ops/sec
hasOwnProperty 1017171584.0 Ops/sec
bool 711591680.0 Ops/sec
Object.prototype.hasOwnProperty 2060769.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty