Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
Chrome 72
Fedora
Desktop
5 years ago
Test name Executions per second
undefined 1421841.8 Ops/sec
typeof 4094792.8 Ops/sec
in 3935707.2 Ops/sec
hasOwnProperty 3847464.8 Ops/sec
bool 4757683.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool