Array.find vs map getFastest: map get (1.2x faster)
4,592,375 ops/sec
3,754,081 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Array.find | |
| map get |
| Test name | Executions per second |
|---|---|
| ✓ map get | 50,715,552 Ops/sec |
| Array.find | 21,940,790 Ops/sec |