Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 120532.6 Ops/sec |
Map.get, 10 000 elements | 4022461.0 Ops/sec |
Array.find, 1 000 000 elements | 278.8 Ops/sec |
Map.get, 1 000 000 elements | 4158510.2 Ops/sec |
Array to Map + Map.get, 1 lookup | 2125.8 Ops/sec |
Array to Map + Map.get, 10 lookups | 2204.1 Ops/sec |
Array to Map + Map.get, 100 lookups | 2135.9 Ops/sec |
Array.find, 10 lookups | 17825.0 Ops/sec |
Array.find, 100 lookups | 1605.3 Ops/sec |