Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36 OPR/66.0.3515.44
Opera 66
Windows
Desktop
4 years ago
Test name Executions per second
undefined 4143249.2 Ops/sec
typeof 11651315.0 Ops/sec
in 11657715.0 Ops/sec
hasOwnProperty 10120348.0 Ops/sec
bool 11659533.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool