In the long run gas hot water is usually more efficient. However, if you have solar panels installed at your property it can be very efficient to run an electric hot water system as the sun is doing most of the work.