Run details:
Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Chrome 66
Windows 8
Desktop
3 years ago
Test name Executions per second
undefined 1243619.2 Ops/sec
typeof 4381021.0 Ops/sec
in 3853231.8 Ops/sec
hasOwnProperty 4110330.0 Ops/sec
bool 4419319.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool