Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Chrome 61
Windows
Desktop
5 years ago
Test name Executions per second
undefined 1863010.0 Ops/sec
typeof 5228112.0 Ops/sec
in 4887698.0 Ops/sec
hasOwnProperty 4861302.0 Ops/sec
bool 5221878.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool