I like more the second one but as every sample from automattic (like underscore) is using functions and they are never defining these functions within classes and never just in the frontend I was hesitating is this really make any kind of difference.

Is it really worthy from a performance point of view? Is it really worthy from an implementation point of view?