Hydrogen fuel cells use about 3x the electric energy vs. battery powered cars, if you create hydrogen via hydrolysis. It is not only the energy used for creating the hydrogen, but also the compression and transport of the hydrogen is using a lot of energy.