Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 16178.8 Ops/sec |
Map.get, 10 000 elements | 506588192.0 Ops/sec |
Array.find, 1 000 000 elements | 156.8 Ops/sec |
Map.get, 1 000 000 elements | 504321824.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 700.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 807.7 Ops/sec |
Array to Map + Map.get, 100 lookups | 823.4 Ops/sec |
Array.find, 10 lookups | 1442.9 Ops/sec |
Array.find, 100 lookups | 144.7 Ops/sec |