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 962901824.0 Ops/sec
typeof 1208046976.0 Ops/sec
in 1101974016.0 Ops/sec
hasOwnProperty 1070766912.0 Ops/sec
bool 1233610624.0 Ops/sec
Object.prototype.hasOwnProperty 1807676.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty