Run details:
Mozilla/5.0 (iPad; CPU OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/86.0.4240.77 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 86
iOS 14.0
Tablet
4 years ago
Test name Executions per second
undefined 3083657.0 Ops/sec
typeof 8499247.0 Ops/sec
in 8587137.0 Ops/sec
hasOwnProperty 8557224.0 Ops/sec
bool 8567347.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool