Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
Chrome 68
Mac OS X 10.13.4
Desktop
6 years ago
Test name Executions per second
undefined 2774221.5 Ops/sec
typeof 10138851.0 Ops/sec
in 9162961.0 Ops/sec
hasOwnProperty 9111966.0 Ops/sec
bool 9982739.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool