Run details:
Mozilla/5.0 (Linux; Android 7.1.2; Redmi 4X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36
Chrome Mobile 87
Android 7.1.2
Mobile
3 years ago
Test name Executions per second
Array indexOf 461533.1 Ops/sec
String indexOf 509395.8 Ops/sec
Object lookup 517161.8 Ops/sec
Script Preparation code:
Tests:
  • Array indexOf

  • String indexOf

  • Object lookup


;