Run details:
Mozilla/5.0 (iPhone; CPU OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/28.1 Mobile/15E148 Safari/605.1.15
Mobile Safari 13
iOS 13.7
Mobile
3 years ago
Test name Executions per second
undefined 593536.8 Ops/sec
typeof 2067014.0 Ops/sec
in 2145167.0 Ops/sec
hasOwnProperty 2118601.0 Ops/sec
bool 2122300.0 Ops/sec
try catch 4029300.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • try catch