Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 YaBrowser/25.2.0.0 Safari/537.36
Yandex Browser 25
Windows
Desktop
2 months ago
Test name Executions per second
Object.hasOwnProperty 24201504.0 Ops/sec
Object in 21076112.0 Ops/sec
Array.indexOf 1399870.4 Ops/sec
direct 20945000.0 Ops/sec
Array includes 1353823.5 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes