Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 99130.7 Ops/sec |
Map.get, 10 000 elements | 2508234.0 Ops/sec |
Array.find, 1 000 000 elements | 127.5 Ops/sec |
Map.get, 1 000 000 elements | 2527289.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 1335.1 Ops/sec |
Array to Map + Map.get, 10 lookups | 1400.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 1358.0 Ops/sec |
Array.find, 10 lookups | 9936.9 Ops/sec |
Array.find, 100 lookups | 999.2 Ops/sec |