Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0
Firefox 79
Windows
Desktop
3 years ago
Test name Executions per second
undefined 91090530.0 Ops/sec
typeof 219349400.0 Ops/sec
in 132360500.0 Ops/sec
hasOwnProperty 131976800.0 Ops/sec
bool 219486400.0 Ops/sec
Undefined2 95855220.0 Ops/sec
undefined3 96450120.0 Ops/sec
undefined4 96566920.0 Ops/sec
bool2 233647300.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Undefined2

  • undefined3

  • undefined4

  • bool2