Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12
Safari 10
Mac OS X 10.12.2
Other
7 years ago
Test name Executions per second
undefined 4419456.5 Ops/sec
typeof 12485967.0 Ops/sec
in 12581651.0 Ops/sec
hasOwnProperty 9538803.0 Ops/sec
truthy 12601776.0 Ops/sec
local undef 6361200.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • truthy

  • local undef


;