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 34087900.0 Ops/sec
typeof 62769600.0 Ops/sec
in 3223641.0 Ops/sec
hasOwnProperty 3975638.0 Ops/sec
truthy 62038120.0 Ops/sec
local undef 42979560.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • truthy

  • local undef