Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 36578.2 Ops/sec |
Map.get, 10 000 elements | 1066512.5 Ops/sec |
Array.find, 1 000 000 elements | 85.4 Ops/sec |
Map.get, 1 000 000 elements | 1093604.6 Ops/sec |
Array to Map + Map.get, 1 lookup | 596.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 651.4 Ops/sec |
Array to Map + Map.get, 100 lookups | 642.6 Ops/sec |
Array.find, 10 lookups | 3678.0 Ops/sec |
Array.find, 100 lookups | 378.7 Ops/sec |