Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 33612.9 Ops/sec |
Map.get, 10 000 elements | 674888896.0 Ops/sec |
Array.find, 1 000 000 elements | 274.0 Ops/sec |
Map.get, 1 000 000 elements | 672872704.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1354.8 Ops/sec |
Array to Map + Map.get, 10 lookups | 1526.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 1527.2 Ops/sec |
Array.find, 10 lookups | 3303.1 Ops/sec |
Array.find, 100 lookups | 346.6 Ops/sec |