Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 31442.2 Ops/sec |
Map.get, 10 000 elements | 1164218880.0 Ops/sec |
Array.find, 1 000 000 elements | 298.8 Ops/sec |
Map.get, 1 000 000 elements | 1169047808.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1248.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 1355.1 Ops/sec |
Array to Map + Map.get, 100 lookups | 1371.7 Ops/sec |
Array.find, 10 lookups | 3200.0 Ops/sec |
Array.find, 100 lookups | 314.7 Ops/sec |