Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36
Chrome 99
Windows
Desktop
one month ago
Test name Executions per second
undefined 321846144.0 Ops/sec
typeof 717950784.0 Ops/sec
in 719298624.0 Ops/sec
hasOwnProperty 103936016.0 Ops/sec
bool 711024256.0 Ops/sec
hasOwn 76356144.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • hasOwn