Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Chrome 76
Mac OS X 10.14.0
Desktop
5 years ago
Test name Executions per second
Array indexOf 6116841.5 Ops/sec
String indexOf 6381069.0 Ops/sec
Object lookup 6543274.5 Ops/sec
Script Preparation code:
Tests:
  • Array indexOf

  • String indexOf

  • Object lookup


;