Test name | Executions per second |
---|---|
Array.find, 10 000 elements | 44553.9 Ops/sec |
Map.get, 10 000 elements | 1280424.5 Ops/sec |
Array.find, 1 000 000 elements | 90.3 Ops/sec |
Map.get, 1 000 000 elements | 1316336.4 Ops/sec |
Array to Map + Map.get, 1 lookup | 771.4 Ops/sec |
Array to Map + Map.get, 10 lookups | 865.1 Ops/sec |
Array to Map + Map.get, 100 lookups | 816.8 Ops/sec |
Array.find, 10 lookups | 3965.0 Ops/sec |
Array.find, 100 lookups | 371.7 Ops/sec |