Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
Chrome 101
Windows 7
Desktop
2 years ago
Test name Executions per second
undefined 3646463.2 Ops/sec
typeof 10254358.0 Ops/sec
in 10276589.0 Ops/sec
hasOwnProperty 9245765.0 Ops/sec
bool 10203963.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool