Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96
Windows
Desktop
2 years ago
Test name Executions per second
undefined 936956160.0 Ops/sec
typeof 1229153408.0 Ops/sec
in 1110878592.0 Ops/sec
hasOwnProperty 1037008512.0 Ops/sec
bool 1250721408.0 Ops/sec
Object.prototype.hasOwnProperty 1869603.4 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty