Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0
Firefox 50
Mac OS X 10.12
Other
7 years ago
Test name Executions per second
undefined 168366100.0 Ops/sec
typeof 528980600.0 Ops/sec
in 36080460.0 Ops/sec
hasOwnProperty 43657770.0 Ops/sec
truthy 515029000.0 Ops/sec
local undef 264218200.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • truthy

  • local undef