For exact matches, Hashmap is the winner. But There is a setup time.
For range-based matches, binary search is better. But the data must be sorted beforehand.
Source: https://machinelearningx.com/algorithms/binary-search-hashmap-linear-search url