Run details:
Mozilla/5.0 (Linux; Android 7.1.1; SAMSUNG SM-J510FN) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/11.2 Chrome/75.0.3770.143 Mobile Safari/537.36
Chrome Mobile 75
Android 7.1.1
Mobile
4 years ago
Test name Executions per second
Object.hasOwnProperty 304419.4 Ops/sec
Object in 247141.8 Ops/sec
Array.indexOf 52043.9 Ops/sec
direct 297406.6 Ops/sec
Array includes 51624.0 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;