Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 155010.2 Ops/sec |
Map.get, 10 000 elements | 1714297.0 Ops/sec |
Array.find, 1 000 000 elements | 159.2 Ops/sec |
Map.get, 1 000 000 elements | 1780377.9 Ops/sec |
Array to Map + Map.get, 1 lookup | 1468.6 Ops/sec |
Array to Map + Map.get, 10 lookups | 1506.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 1430.6 Ops/sec |
Array.find, 10 lookups | 16330.3 Ops/sec |
Array.find, 100 lookups | 1621.2 Ops/sec |