Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36 OPR/51.0.2830.26
Opera 51
Windows
Other
2025 years ago
Test name Executions per second
Array indexOf 5750288.5 Ops/sec
String indexOf 3097655.0 Ops/sec
Object lookup 6377535.5 Ops/sec
Script Preparation code:
Tests:
  • Array indexOf

  • String indexOf

  • Object lookup


;