There is going to be a very slight time difference between $hash{foo} and $hashref->{foo}, since the latter takes one additional operation (assuming both are lexicals).
But any difference is likely to be trivial enough that it should be a matter of preference.