Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 29228.0 Ops/sec |
Map.get, 10 000 elements | 824828.5 Ops/sec |
Array.find, 1 000 000 elements | 73.0 Ops/sec |
Map.get, 1 000 000 elements | 1163364.6 Ops/sec |
Array to Map + Map.get, 1 lookup | 512.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 622.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 646.8 Ops/sec |
Array.find, 10 lookups | 3263.5 Ops/sec |
Array.find, 100 lookups | 332.4 Ops/sec |