Run details:
Mozilla/5.0 (Linux; Android 9; MI 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Mobile Safari/537.36
Chrome Mobile 74
Android
Mobile
5 years ago
Test name Executions per second
undefined 2210735.8 Ops/sec
typeof 6051001.0 Ops/sec
in 6013496.5 Ops/sec
hasOwnProperty 5558767.0 Ops/sec
bool 6023023.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool