Run details:
Mozilla/5.0 (Linux; Android 10; SM-G970F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.119 Mobile Safari/537.36
Chrome Mobile 80
Android
Mobile
4 years ago
Test name Executions per second
undefined 2174515.2 Ops/sec
typeof 5755738.5 Ops/sec
in 6372150.5 Ops/sec
hasOwnProperty 5809163.0 Ops/sec
bool 6536131.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool