Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/105.0.5195.100 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 105
iOS 16.0
Mobile
2 years ago
Test name Executions per second
undefined 10053327.0 Ops/sec
typeof 25897126.0 Ops/sec
in 25340240.0 Ops/sec
hasOwnProperty 24235054.0 Ops/sec
bool 24036654.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool