Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
Chrome 86
Linux
Desktop
3 years ago
Test name Executions per second
undefined 4291013.0 Ops/sec
typeof 12114660.0 Ops/sec
in 8757604.0 Ops/sec
hasOwnProperty 7468819.0 Ops/sec
truthy 7848709.0 Ops/sec
local undef 4838602.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • truthy

  • local undef