Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36 Edg/84.0.522.59
Chrome 84
Windows
Desktop
4 years ago
Test name Executions per second
undefined 3495481.0 Ops/sec
typeof 9753814.0 Ops/sec
in 9811654.0 Ops/sec
hasOwnProperty 8939650.0 Ops/sec
bool 9852313.0 Ops/sec
again 3499383.5 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • again