Run details:
Mozilla/5.0 (Linux; Android 10; 6201) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Mobile Safari/537.36 OPR/64.2.3282.60128
Opera Mobile 64
Android
Mobile
3 years ago
Test name Executions per second
undefined 433121.7 Ops/sec
typeof 1198944.6 Ops/sec
in 1182880.2 Ops/sec
hasOwnProperty 1089169.2 Ops/sec
bool 1181367.5 Ops/sec
?. 1166822.1 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • ?.