Is a heat pump more cost effective for underfloor heating?

Should a heat pump supplied underfloor heating system be more cost effective to operate than a gas fired system bearing in mind the large electrical consumption for the compressor?