Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 110180.4 Ops/sec |
Map.get, 10 000 elements | 3140642.0 Ops/sec |
Array.find, 1 000 000 elements | 229.9 Ops/sec |
Map.get, 1 000 000 elements | 3001215.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 1369.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 1428.7 Ops/sec |
Array to Map + Map.get, 100 lookups | 1415.2 Ops/sec |
Array.find, 10 lookups | 15569.0 Ops/sec |
Array.find, 100 lookups | 1469.9 Ops/sec |