Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36
Chromium 78
Ubuntu
Desktop
5 years ago
Test name Executions per second
undefined 2574358.2 Ops/sec
typeof 9504121.0 Ops/sec
in 8363905.0 Ops/sec
hasOwnProperty 6698863.0 Ops/sec
bool 7921430.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool