Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 113702.4 Ops/sec |
Map.get, 10 000 elements | 4445294.0 Ops/sec |
Array.find, 1 000 000 elements | 290.3 Ops/sec |
Map.get, 1 000 000 elements | 4654128.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2089.9 Ops/sec |
Array to Map + Map.get, 10 lookups | 2181.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 2137.2 Ops/sec |
Array.find, 10 lookups | 17481.8 Ops/sec |
Array.find, 100 lookups | 1682.6 Ops/sec |