Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.0 Safari/537.36 Edg/99.0.1150.2
Chrome 99
Windows
Desktop
2 years ago
Test name Executions per second
undefined 2617392.0 Ops/sec
typeof 5795472.5 Ops/sec
in 5831854.0 Ops/sec
hasOwnProperty 5152013.5 Ops/sec
bool 6057553.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool