Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 145642.4 Ops/sec |
Map.get, 10 000 elements | 4407096.5 Ops/sec |
Array.find, 1 000 000 elements | 328.0 Ops/sec |
Map.get, 1 000 000 elements | 4685790.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 2430.9 Ops/sec |
Array to Map + Map.get, 10 lookups | 2478.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 2449.9 Ops/sec |
Array.find, 10 lookups | 19315.4 Ops/sec |
Array.find, 100 lookups | 1812.6 Ops/sec |