Run details:
Mozilla/5.0 (Linux; Android 12; IN2025) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36
Chrome Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
Object.hasOwnProperty 2930205.5 Ops/sec
Object in 2738665.5 Ops/sec
Array.indexOf 661537.4 Ops/sec
direct 2795497.5 Ops/sec
Array includes 665201.8 Ops/sec
Set has 1343855.1 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

  • Set has