Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 93539.2 Ops/sec |
Map.get, 10 000 elements | 3770478.0 Ops/sec |
Array.find, 1 000 000 elements | 228.2 Ops/sec |
Map.get, 1 000 000 elements | 3935569.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 1900.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 1984.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 1969.9 Ops/sec |
Array.find, 10 lookups | 13707.9 Ops/sec |
Array.find, 100 lookups | 1244.2 Ops/sec |