Map.get vs Array.findIndexFastest: Map.get (6626.3x faster)
35,756,712 ops/sec
5,396 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Map.get | |
| Array.findIndex |
| Test name | Executions per second |
|---|---|
| ✓ Map.get | 877,651,520 Ops/sec |
| Array.findIndex | 2,643 Ops/sec |