Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.16 Safari/537.36
Chrome 80
Mac OS X 10.15.2
Desktop
5 years ago
Test name Executions per second
undefined 5142422.0 Ops/sec
typeof 15915955.0 Ops/sec
in 15833639.0 Ops/sec
hasOwnProperty 11825697.0 Ops/sec
bool 15826074.0 Ops/sec
keys 3404619.2 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • keys