Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Chrome 66
Fedora
Desktop
5 years ago
Test name Executions per second
undefined 2070197.4 Ops/sec
typeof 7671383.0 Ops/sec
in 7157334.0 Ops/sec
hasOwnProperty 6840084.5 Ops/sec
bool 7451580.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool