Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.57
Chrome 110
Windows
Desktop
one year ago
Test name Executions per second
undefined 7644374.0 Ops/sec
typeof 21412084.0 Ops/sec
in 21365384.0 Ops/sec
hasOwnProperty 19701900.0 Ops/sec
bool 21359058.0 Ops/sec
Object.prototype.hasOwnProperty 4450364.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty


;