Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36
Chrome 101
Linux
Desktop
2 years ago
Test name Executions per second
undefined 7374507.0 Ops/sec
typeof 21491396.0 Ops/sec
in 21384364.0 Ops/sec
hasOwnProperty 19789970.0 Ops/sec
bool 21566332.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool