Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0
Firefox 73
Windows
Desktop
4 years ago
Test name Executions per second
undefined 114588080.0 Ops/sec
typeof 300237888.0 Ops/sec
in 167309040.0 Ops/sec
hasOwnProperty 172127792.0 Ops/sec
bool 300499840.0 Ops/sec
Object.prototype.hasOwnProperty 1372459.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty


;