I feel like the biggest gain here is that doing frequency analysis with sort/unique requires first sorting the input whereas freq does not.