Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.1 Safari/605.1.15
Safari 12
Mac OS X 10.12.6
Desktop
5 years ago
Test name Executions per second
undefined 2405729.2 Ops/sec
typeof 7264207.5 Ops/sec
in 6827698.5 Ops/sec
hasOwnProperty 7192086.0 Ops/sec
bool 7194021.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool


;