Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Ubuntu
Desktop
4 years ago
Test name Executions per second
Array indexOf 60761188.0 Ops/sec
String indexOf 6280623.0 Ops/sec
Object lookup 112734360.0 Ops/sec
Script Preparation code:
Tests:
  • Array indexOf

  • String indexOf

  • Object lookup


;