Run details:
Mozilla/5.0 (Linux; Android 11; Pixel 4 XL) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/15.0 Chrome/90.0.4430.210 Mobile Safari/537.36
Chrome Mobile 90
Android
Mobile
3 years ago
Test name Executions per second
Object.hasOwnProperty 2910628.2 Ops/sec
Object in 2625434.5 Ops/sec
Array.indexOf 458790.2 Ops/sec
direct 2617775.2 Ops/sec
Array includes 460058.6 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;