Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 22261.7 Ops/sec |
Map.get, 10 000 elements | 1456018.1 Ops/sec |
Array.find, 1 000 000 elements | 83.1 Ops/sec |
Map.get, 1 000 000 elements | 1159644.9 Ops/sec |
Array to Map + Map.get, 1 lookup | 486.9 Ops/sec |
Array to Map + Map.get, 10 lookups | 524.3 Ops/sec |
Array to Map + Map.get, 100 lookups | 516.4 Ops/sec |
Array.find, 10 lookups | 3100.7 Ops/sec |
Array.find, 100 lookups | 353.1 Ops/sec |