Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
Chrome 73
Mac OS X 10.14.3
Desktop
5 years ago
Test name Executions per second
undefined 4648858.0 Ops/sec
typeof 14641500.0 Ops/sec
in 13467060.0 Ops/sec
hasOwnProperty 13059520.0 Ops/sec
bool 14518370.0 Ops/sec
undefined2 14556750.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • undefined2