Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 37773.5 Ops/sec |
Map.get, 10 000 elements | 897919.0 Ops/sec |
Array.find, 1 000 000 elements | 73.1 Ops/sec |
Map.get, 1 000 000 elements | 943890.8 Ops/sec |
Array to Map + Map.get, 1 lookup | 494.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 538.6 Ops/sec |
Array to Map + Map.get, 100 lookups | 520.7 Ops/sec |
Array.find, 10 lookups | 4081.8 Ops/sec |
Array.find, 100 lookups | 404.9 Ops/sec |