Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Linux
Desktop
one year ago
Test name Executions per second
undefined 6955104.0 Ops/sec
typeof 19354348.0 Ops/sec
in 18962126.0 Ops/sec
hasOwnProperty 16570410.0 Ops/sec
bool 18526908.0 Ops/sec
hasOwn 6021020.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool

  • hasOwn