Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Redmi Note 5 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36
Chrome Mobile 73
Android 8.1.0
Mobile
5 years ago
Test name Executions per second
Object.hasOwnProperty 1413361.9 Ops/sec
Object in 1005793.3 Ops/sec
Array.indexOf 171529.0 Ops/sec
direct 1285653.9 Ops/sec
Array includes 170773.8 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;