Run details:
Mozilla/5.0 (Linux; Android 11; Pixel 3a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.74 Mobile Safari/537.36
Chrome Mobile 95
Android
Mobile
3 years ago
Test name Executions per second
undefined 1463198.4 Ops/sec
typeof 4273706.0 Ops/sec
in 4281936.0 Ops/sec
hasOwnProperty 3957051.2 Ops/sec
bool 4283106.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool