More memory/performance efficient way of creating materials?

Hi,

I’d like to know if it is more efficient to have one base material, and then make 20 instances of that material. Or is it more efficient if I make 20 different materials? By efficient I mean does it take more memory or does it have any other kind of impact on the scene?

thanks