Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 OPR/52.0.2871.99
Opera 52
Windows
Other
6 years ago
Test name Executions per second
undefined 2778458.8 Ops/sec
typeof 8323770.0 Ops/sec
in 7659091.0 Ops/sec
hasOwnProperty 7635103.5 Ops/sec
bool 8352461.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool