Run details:
Mozilla/5.0 (Windows NT 5.1; rv:50.0) Gecko/20100101 Firefox/50.0
Firefox 50
Windows XP
Other
7 years ago
Test name Executions per second
undefined 34087904.0 Ops/sec
typeof 62769596.0 Ops/sec
in 3223640.5 Ops/sec
hasOwnProperty 3975637.8 Ops/sec
truthy 62038120.0 Ops/sec
local undef 42979556.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • truthy

  • local undef


;