Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 122618.0 Ops/sec |
Map.get, 10 000 elements | 84400160.0 Ops/sec |
Array.find, 1 000 000 elements | 283.6 Ops/sec |
Map.get, 1 000 000 elements | 84964672.0 Ops/sec |
Array to Map + Map.get, 1 lookup | 2162.5 Ops/sec |
Array to Map + Map.get, 10 lookups | 2310.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 2329.9 Ops/sec |
Array.find, 10 lookups | 16758.4 Ops/sec |
Array.find, 100 lookups | 1627.6 Ops/sec |