Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 127669.9 Ops/sec |
Map.get, 10 000 elements | 4878730.0 Ops/sec |
Array.find, 1 000 000 elements | 288.0 Ops/sec |
Map.get, 1 000 000 elements | 4852553.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 1824.1 Ops/sec |
Array to Map + Map.get, 10 lookups | 1953.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 1919.6 Ops/sec |
Array.find, 10 lookups | 17973.3 Ops/sec |
Array.find, 100 lookups | 1705.7 Ops/sec |