Run details:
Mozilla/5.0 (Linux; Android 9; Nokia 8 Sirocco) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36
Chrome Mobile 73
Android
Mobile
5 years ago
Test name Executions per second
undefined 1853299.5 Ops/sec
typeof 1 5281479.0 Ops/sec
in 4890886.0 Ops/sec
hasOwnProperty 4797795.5 Ops/sec
bool 5334158.5 Ops/sec
typeof 2 5315123.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof 1

  • in

  • hasOwnProperty

  • bool

  • typeof 2


;