Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36
Chrome 63
Mac OS X 10.11.6
Other
2024 years ago
Test name Executions per second
undefined 3343099.0 Ops/sec
typeof 9022505.0 Ops/sec
in 8984970.0 Ops/sec
hasOwnProperty 7880415.0 Ops/sec
bool 9907956.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool