Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1
Mobile Safari 14
iOS 14.0
Mobile
3 years ago
Test name Executions per second
undefined 6976079.0 Ops/sec
typeof 20747506.0 Ops/sec
in 20575192.0 Ops/sec
hasOwnProperty 20383454.0 Ops/sec
bool 20190340.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool