Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 129849.1 Ops/sec |
Map.get, 10 000 elements | 2239350.0 Ops/sec |
Array.find, 1 000 000 elements | 251.8 Ops/sec |
Map.get, 1 000 000 elements | 1460962.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 1491.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 1550.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 1482.6 Ops/sec |
Array.find, 10 lookups | 17606.9 Ops/sec |
Array.find, 100 lookups | 1773.2 Ops/sec |