Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 25201.3 Ops/sec |
Map.get, 10 000 elements | 1013743.1 Ops/sec |
Array.find, 1 000 000 elements | 80.6 Ops/sec |
Map.get, 1 000 000 elements | 1114844.4 Ops/sec |
Array to Map + Map.get, 1 lookup | 977.2 Ops/sec |
Array to Map + Map.get, 10 lookups | 1122.2 Ops/sec |
Array to Map + Map.get, 100 lookups | 1041.1 Ops/sec |
Array.find, 10 lookups | 2896.3 Ops/sec |
Array.find, 100 lookups | 342.4 Ops/sec |