Run details:
Mozilla/5.0 (Linux; Android 12; SM-N9750) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.73 Mobile Safari/537.36
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
undefined 3402066.8 Ops/sec
typeof 9815393.0 Ops/sec
in 9849718.0 Ops/sec
hasOwnProperty 8950236.0 Ops/sec
bool 9839643.0 Ops/sec
Object.prototype.hasOwnProperty 1570372.4 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty