Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 35613.2 Ops/sec |
Map.get, 10 000 elements | 1287284.0 Ops/sec |
Array.find, 1 000 000 elements | 116.0 Ops/sec |
Map.get, 1 000 000 elements | 1399195.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 901.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 992.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 977.2 Ops/sec |
Array.find, 10 lookups | 5645.1 Ops/sec |
Array.find, 100 lookups | 511.0 Ops/sec |