Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 28304.3 Ops/sec |
Map.get, 10 000 elements | 676952384.0 Ops/sec |
Array.find, 1 000 000 elements | 243.6 Ops/sec |
Map.get, 1 000 000 elements | 658413760.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1110.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 1147.1 Ops/sec |
Array to Map + Map.get, 100 lookups | 1118.3 Ops/sec |
Array.find, 10 lookups | 2986.3 Ops/sec |
Array.find, 100 lookups | 291.7 Ops/sec |