Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 YaBrowser/20.8.3.361 (beta) Yowser/2.5 Safari/537.36
Yandex Browser 20
Linux
Desktop
4 years ago
Test name Executions per second
undefined 4082077.5 Ops/sec
typeof 12662861.0 Ops/sec
in 12364303.0 Ops/sec
hasOwnProperty 10971576.0 Ops/sec
bool 12142096.0 Ops/sec
Script Preparation code:
Tests:
  • undefined

  • typeof

  • in

  • hasOwnProperty

  • bool