Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6
Safari 11
Mac OS X 10.13.3
Desktop
6 years ago
Test name Executions per second
undefined 3093687.5 Ops/sec
typeof 10508291.0 Ops/sec
in 9975618.0 Ops/sec
hasOwnProperty 9867861.0 Ops/sec
bool 10021793.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool