Run details:
Mozilla/5.0 (Linux; Android 9; ASUS_X01BDA) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36
Chrome Mobile 79
Android
Mobile
4 years ago
Test name Executions per second
Object.hasOwnProperty 985315.6 Ops/sec
Object in 744283.3 Ops/sec
Array.indexOf 141833.5 Ops/sec
direct 944379.8 Ops/sec
Array includes 177401.4 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes