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 437734.9 Ops/sec
typeof 1215046.1 Ops/sec
in 1210692.5 Ops/sec
hasOwnProperty 1090020.1 Ops/sec
bool 1216822.5 Ops/sec
?. 1190066.4 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • ?.