Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Ubuntu
Desktop
3 years ago
Test name Executions per second
undefined 493210592.0 Ops/sec
typeof 543697408.0 Ops/sec
in 540011904.0 Ops/sec
hasOwnProperty 479848672.0 Ops/sec
bool 502234560.0 Ops/sec
Object.prototype.hasOwnProperty 693754.7 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty