Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0
Firefox 73
Windows
Desktop
4 years ago
Test name Executions per second
undefined 35029960.0 Ops/sec
typeof 91860200.0 Ops/sec
in 69259110.0 Ops/sec
hasOwnProperty 70251880.0 Ops/sec
bool 93481710.0 Ops/sec
Undefined2 36666320.0 Ops/sec
undefined3 37518360.0 Ops/sec
undefined4 37637630.0 Ops/sec
bool2 92777700.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • Undefined2

  • undefined3

  • undefined4

  • bool2