Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Mac OS X 10.15.5
Desktop
2 years ago
Test name Executions per second
undefined 3531811.5 Ops/sec
typeof 10378743.0 Ops/sec
in 10721234.0 Ops/sec
hasOwnProperty 9224538.0 Ops/sec
bool 10722462.0 Ops/sec
Object.prototype.hasOwnProperty 2044296.8 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty