Run details:
Mozilla/5.0 (Linux; Android 9; SM-N960F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.73 Mobile Safari/537.36
Chrome Mobile 77
Android
Mobile
5 years ago
Test name Executions per second
Object.hasOwnProperty 876549.1 Ops/sec
Object in 958237.8 Ops/sec
Array.indexOf 269011.2 Ops/sec
direct 1046186.8 Ops/sec
Array includes 231751.4 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes