It depends on your use-case which one is faster
- If you want to loop through all elements, arrays are faster
- If you want to look up a specific element (where you know the index), arrays are faster
- If you want to know if a specific element is in a list, hashes are much faster
There are many posts on this, e.g. the discussion in this thread
Why are hashes so much faster?, or the
mailing-list entry here.
HTH, Rata