Run details:
Mozilla/5.0 (Linux; Android 10; Pixel 3 XL Build/QQ3A.200805.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/84.0.4147.125 Mobile Safari/537.36
Chrome Mobile 84
Android
Mobile
4 years ago
Test name Executions per second
undefined 2366584.8 Ops/sec
typeof 6446426.5 Ops/sec
in 6453468.0 Ops/sec
hasOwnProperty 5900753.0 Ops/sec
bool 6472221.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool