Run details:
Mozilla/5.0 (Linux; Android 10; SM-G965F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Mobile Safari/537.36
Chrome Mobile 87
Android
Mobile
3 years ago
Test name Executions per second
Object.hasOwnProperty 955956.6 Ops/sec
Object in 1023133.9 Ops/sec
Array.indexOf 213400.3 Ops/sec
direct 895991.2 Ops/sec
Array includes 282682.9 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes


;