Run details:
Mozilla/5.0 (Linux; Android 11; KB2000) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.57 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
Object.hasOwnProperty 3554388.2 Ops/sec
Object in 3195541.0 Ops/sec
Array.indexOf 712442.8 Ops/sec
direct 3270531.8 Ops/sec
Array includes 696479.6 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes