Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 12_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
Mobile Safari 12
iOS 12.3.1
Mobile
5 years ago
Test name Executions per second
undefined 2428346.0 Ops/sec
typeof 7124880.0 Ops/sec
in 6036934.0 Ops/sec
hasOwnProperty 5890626.5 Ops/sec
bool 6687147.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool