Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 84993.5 Ops/sec |
Map.get, 10 000 elements | 1683554.1 Ops/sec |
Array.find, 1 000 000 elements | 153.4 Ops/sec |
Map.get, 1 000 000 elements | 1760786.6 Ops/sec |
Array to Map + Map.get, 1 lookup | 1018.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 1064.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 989.3 Ops/sec |
Array.find, 10 lookups | 8639.6 Ops/sec |
Array.find, 100 lookups | 934.9 Ops/sec |