Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Chrome 106
Mac OS X 10.15.5
Desktop
one year ago
Test name Executions per second
undefined 3531812.0 Ops/sec
typeof 10378740.0 Ops/sec
in 10721230.0 Ops/sec
hasOwnProperty 9224538.0 Ops/sec
bool 10722460.0 Ops/sec
Object.prototype.hasOwnProperty 2044297.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Object.prototype.hasOwnProperty