Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.152 Safari/537.36
Chrome 88
Mac OS X 11.2.1
Desktop
3 years ago
Test name Executions per second
undefined 4607147.0 Ops/sec
typeof 14202778.0 Ops/sec
in 13490193.0 Ops/sec
hasOwnProperty 12321403.0 Ops/sec
truthy 14261658.0 Ops/sec
local undef 7408139.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • truthy

  • local undef


;