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 2495876.2 Ops/sec
typeof 8425370.0 Ops/sec
in 6749002.5 Ops/sec
hasOwnProperty 6465085.0 Ops/sec
bool 8345088.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool