The electrolysis of one mole of water produces one mole of hydrogen and Half mole of oxygen. All these numbers are moles or we can say volume.
H2O ----> H2 + 1/2 O2
This means the volume occupied by hydrogen gas is twice of oxygen gas. Mass wise if you calculate you get 2 g of hydrogen and 16 g of oxygen.