Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 89573.8 Ops/sec |
Map.get, 10 000 elements | 2322059.5 Ops/sec |
Array.find, 1 000 000 elements | 206.8 Ops/sec |
Map.get, 1 000 000 elements | 2278355.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 1299.4 Ops/sec |
Array to Map + Map.get, 10 lookups | 1424.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 1248.6 Ops/sec |
Array.find, 10 lookups | 13893.0 Ops/sec |
Array.find, 100 lookups | 1371.4 Ops/sec |