find by binary search array vs find by array polling vs find by hashmapFastest: find by hashmap (4.7x faster)
5,142,536 ops/sec
2,112,464 ops/sec
1,099,931 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| find by binary search array | |
| find by array polling | |
| find by hashmap |
| Test name | Executions per second |
|---|---|
| ✓ find by hashmap | 224,067,872 Ops/sec |
| find by binary search array | 11,735,196 Ops/sec |
| find by array polling | 1,927,881 Ops/sec |