Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 80949.9 Ops/sec |
Map.get, 10 000 elements | 1535531.2 Ops/sec |
Array.find, 1 000 000 elements | 128.7 Ops/sec |
Map.get, 1 000 000 elements | 1434046.2 Ops/sec |
Array to Map + Map.get, 1 lookup | 1012.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 1039.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 1019.4 Ops/sec |
Array.find, 10 lookups | 8363.2 Ops/sec |
Array.find, 100 lookups | 697.5 Ops/sec |