Get all actors of class VS Variable with object reference

Which method is better in performance to use most of the time, when you want to call an object?
get all actors of class
or
Variable with object reference