Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 57764.5 Ops/sec |
Map.get, 10 000 elements | 1685306.2 Ops/sec |
Array.find, 1 000 000 elements | 128.4 Ops/sec |
Map.get, 1 000 000 elements | 1065310.1 Ops/sec |
Array to Map + Map.get, 1 lookup | 1103.3 Ops/sec |
Array to Map + Map.get, 10 lookups | 1247.5 Ops/sec |
Array to Map + Map.get, 100 lookups | 1215.9 Ops/sec |
Array.find, 10 lookups | 8968.6 Ops/sec |
Array.find, 100 lookups | 785.1 Ops/sec |