Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
undefined 1562700160.0 Ops/sec
typeof 1562401920.0 Ops/sec
in 1565518208.0 Ops/sec
hasOwnProperty 1566217472.0 Ops/sec
bool 1565603968.0 Ops/sec
Object.prototype.hasOwnProperty 2737397.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty