Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 184038.8 Ops/sec |
Map.get, 10 000 elements | 2338007.0 Ops/sec |
Array.find, 1 000 000 elements | 207.5 Ops/sec |
Map.get, 1 000 000 elements | 2294280.2 Ops/sec |
Array to Map + Map.get, 1 lookup | 1477.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 1482.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 1422.4 Ops/sec |
Array.find, 10 lookups | 17879.0 Ops/sec |
Array.find, 100 lookups | 1750.5 Ops/sec |