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 2293482.8 Ops/sec
typeof 6374189.5 Ops/sec
in 8192561.5 Ops/sec
hasOwnProperty 7857236.0 Ops/sec
bool 8878499.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool