Run details:
Mozilla/5.0 (Linux; Android 12; M2012K11AG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Mobile Safari/537.36
Chrome Mobile 106
Android
Mobile
2 years ago
Test name Executions per second
Object.hasOwnProperty 2951936.0 Ops/sec
Object in 2613441.0 Ops/sec
Array.indexOf 660676.2 Ops/sec
direct 2624328.0 Ops/sec
Array includes 661869.2 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes