Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 31148.3 Ops/sec |
Map.get, 10 000 elements | 696567.2 Ops/sec |
Array.find, 1 000 000 elements | 65.9 Ops/sec |
Map.get, 1 000 000 elements | 697625.6 Ops/sec |
Array to Map + Map.get, 1 lookup | 495.8 Ops/sec |
Array to Map + Map.get, 10 lookups | 616.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 561.8 Ops/sec |
Array.find, 10 lookups | 3396.9 Ops/sec |
Array.find, 100 lookups | 316.2 Ops/sec |