What is faster: sparse vector or a dictionary?

What if I never defined the name (i.e. used _)? Edit: That wouldn’t have helped at all.