Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 YaBrowser/20.2.0.1145 Yowser/2.5 Safari/537.36
Yandex Browser 20
Mac OS X 10.14.6
Desktop
4 years ago
Test name Executions per second
undefined 5343451.5 Ops/sec
typeof 15198600.0 Ops/sec
in 14564047.0 Ops/sec
hasOwnProperty 13021239.0 Ops/sec
bool 14901348.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool