Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
IE 11
Windows
Desktop
2 years ago
Test name Executions per second
Array indexOf 10099339.0 Ops/sec
String indexOf 5108013.5 Ops/sec
Object lookup 13065993.0 Ops/sec
Script Preparation code:
Tests:
  • Array indexOf

  • String indexOf

  • Object lookup


;