Run details:
Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-N950F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36
Chrome Mobile 79
Android
Mobile
3 years ago
Test name Executions per second
undefined 1462487.0 Ops/sec
typeof 4575022.0 Ops/sec
in 4464992.0 Ops/sec
hasOwnProperty 4178256.0 Ops/sec
bool 4431711.0 Ops/sec
Object.prototype.hasOwnProperty 791699.4 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty