array of object search

6 years ago
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.101 Safari/537.36
Test name Executions per second
Array.find 42.2 Ops/sec
indexed copy 351.6 Ops/sec
index map 261.1 Ops/sec
Script Preparation code:
Tests:
  • Array.find

  • indexed copy

  • index map

Open this result on MeasureThat.net