Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 31407.6 Ops/sec |
Map.get, 10 000 elements | 765966848.0 Ops/sec |
Array.find, 1 000 000 elements | 260.2 Ops/sec |
Map.get, 1 000 000 elements | 851346304.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1358.0 Ops/sec |
Array to Map + Map.get, 10 lookups | 1322.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 1404.1 Ops/sec |
Array.find, 10 lookups | 3275.7 Ops/sec |
Array.find, 100 lookups | 322.1 Ops/sec |