Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 88722.4 Ops/sec |
Map.get, 10 000 elements | 2215879.5 Ops/sec |
Array.find, 1 000 000 elements | 213.0 Ops/sec |
Map.get, 1 000 000 elements | 2390926.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1330.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 1360.9 Ops/sec |
Array to Map + Map.get, 100 lookups | 1241.2 Ops/sec |
Array.find, 10 lookups | 14325.5 Ops/sec |
Array.find, 100 lookups | 1348.3 Ops/sec |