Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Xperia XA2 Ultra Dual (AOSP)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Mobile Safari/537.36
Chrome Mobile 88
Android 8.1.0
Mobile
3 years ago
Test name Executions per second
Object.hasOwnProperty 470507.8 Ops/sec
Object in 421286.0 Ops/sec
Array.indexOf 81717.7 Ops/sec
direct 401601.2 Ops/sec
Array includes 79007.0 Ops/sec
Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array includes