Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.132 YaBrowser/22.3.1.922 Yowser/2.5 Safari/537.36
Yandex Browser 22
Linux
Desktop
2 years ago
Test name Executions per second
Object.hasOwnProperty 2701361.8 Ops/sec
Object in 2904534.0 Ops/sec
Array.indexOf 358836.8 Ops/sec
direct 2883614.2 Ops/sec
Array includes 324192.7 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes