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 2999136.2 Ops/sec
Object in 2748071.5 Ops/sec
Array.indexOf 664329.8 Ops/sec
direct 2806786.0 Ops/sec
Array includes 665189.1 Ops/sec
Set has 2260864.8 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes

  • Set has