Even when implemented by a simple sequence of comparisons, the benefits from the CPU cache and branch predictor tends to completely obliterate the hash table lookup for most generic hash table implementations. But yes, profiling makes it apparent.