Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 61436.9 Ops/sec |
Map.get, 10 000 elements | 2798329.8 Ops/sec |
Array.find, 1 000 000 elements | 150.6 Ops/sec |
Map.get, 1 000 000 elements | 2746514.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1331.7 Ops/sec |
Array to Map + Map.get, 10 lookups | 1406.7 Ops/sec |
Array to Map + Map.get, 100 lookups | 1408.0 Ops/sec |
Array.find, 10 lookups | 9142.6 Ops/sec |
Array.find, 100 lookups | 865.8 Ops/sec |