Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 123156.7 Ops/sec |
Map.get, 10 000 elements | 1553227.8 Ops/sec |
Array.find, 1 000 000 elements | 184.6 Ops/sec |
Map.get, 1 000 000 elements | 1492246.2 Ops/sec |
Array to Map + Map.get, 1 lookup | 1171.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 1224.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 1164.3 Ops/sec |
Array.find, 10 lookups | 12627.7 Ops/sec |
Array.find, 100 lookups | 1208.7 Ops/sec |