Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 204284.2 Ops/sec |
Map.get, 10 000 elements | 6357755.0 Ops/sec |
Array.find, 1 000 000 elements | 399.6 Ops/sec |
Map.get, 1 000 000 elements | 6616761.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 3096.1 Ops/sec |
Array to Map + Map.get, 10 lookups | 3177.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 3097.2 Ops/sec |
Array.find, 10 lookups | 25193.8 Ops/sec |
Array.find, 100 lookups | 2604.7 Ops/sec |