Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36
Chrome 99
Windows
Desktop
14 days ago
Test name Executions per second
undefined 296847232.0 Ops/sec
typeof 508150528.0 Ops/sec
in 587390016.0 Ops/sec
hasOwnProperty 88553664.0 Ops/sec
bool 626298240.0 Ops/sec
Object.prototype.hasOwnProperty 44279072.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty