Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8
Safari 10
Mac OS X 10.12.3
Other
7 years ago
Test name Executions per second
undefined 4691710.5 Ops/sec
typeof 13608200.0 Ops/sec
in 13549317.0 Ops/sec
hasOwnProperty 10276454.0 Ops/sec
truthy 13584332.0 Ops/sec
local undef 6840630.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • truthy

  • local undef


;