Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 158088.6 Ops/sec |
Map.get, 10 000 elements | 94252784.0 Ops/sec |
Array.find, 1 000 000 elements | 328.7 Ops/sec |
Map.get, 1 000 000 elements | 88624560.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2416.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 2566.0 Ops/sec |
Array to Map + Map.get, 100 lookups | 2554.8 Ops/sec |
Array.find, 10 lookups | 20815.7 Ops/sec |
Array.find, 100 lookups | 1859.3 Ops/sec |