Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36
Chrome 74
Mac OS X 10.14.2
Desktop
5 years ago
Test name Executions per second
undefined 2784272.8 Ops/sec
typeof 7475363.0 Ops/sec
in 8202313.0 Ops/sec
hasOwnProperty 7385961.5 Ops/sec
bool 8720912.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool


;