Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 49280.4 Ops/sec |
Map.get, 10 000 elements | 1184910.6 Ops/sec |
Array.find, 1 000 000 elements | 111.4 Ops/sec |
Map.get, 1 000 000 elements | 1198388.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 416.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 544.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 484.9 Ops/sec |
Array.find, 10 lookups | 5075.6 Ops/sec |
Array.find, 100 lookups | 576.4 Ops/sec |