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 2849427.8 Ops/sec
Object in 2438195.8 Ops/sec
Array.indexOf 182048.6 Ops/sec
direct 1610841.1 Ops/sec
Array includes 542908.1 Ops/sec
Set has 3053188.0 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

  • Set has