Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 94648.7 Ops/sec |
Map.get, 10 000 elements | 2874481.5 Ops/sec |
Array.find, 1 000 000 elements | 309.5 Ops/sec |
Map.get, 1 000 000 elements | 2814846.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 1442.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 1522.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 1488.8 Ops/sec |
Array.find, 10 lookups | 9423.7 Ops/sec |
Array.find, 100 lookups | 953.2 Ops/sec |