Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 177065.1 Ops/sec |
Map.get, 10 000 elements | 5703564.0 Ops/sec |
Array.find, 1 000 000 elements | 422.1 Ops/sec |
Map.get, 1 000 000 elements | 5976058.5 Ops/sec |
Array to Map + Map.get, 1 lookup | 3123.0 Ops/sec |
Array to Map + Map.get, 10 lookups | 3170.8 Ops/sec |
Array to Map + Map.get, 100 lookups | 3096.4 Ops/sec |
Array.find, 10 lookups | 20710.7 Ops/sec |
Array.find, 100 lookups | 2205.5 Ops/sec |