Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 188083.9 Ops/sec |
Map.get, 10 000 elements | 4499214.5 Ops/sec |
Array.find, 1 000 000 elements | 306.1 Ops/sec |
Map.get, 1 000 000 elements | 4569857.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2173.7 Ops/sec |
Array to Map + Map.get, 10 lookups | 2176.4 Ops/sec |
Array to Map + Map.get, 100 lookups | 2130.4 Ops/sec |
Array.find, 10 lookups | 18959.3 Ops/sec |
Array.find, 100 lookups | 1908.6 Ops/sec |