Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Windows
Desktop
one year ago
Test name Executions per second
undefined 1114666000.0 Ops/sec
typeof 1297282000.0 Ops/sec
in 1141858000.0 Ops/sec
hasOwnProperty 1068281000.0 Ops/sec
bool 1295866000.0 Ops/sec
Object.prototype.hasOwnProperty 2602873.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty