Separating the question into two components - speed and gradient, then
* the amount of energy required to go up a hill is always the same, steep or not, fast or slow (ignoring air resistance), so the amount of fuel required will always be similar, depending upon the load at which the engine/transmission is most efficient
* the amount of energy required to cover a distance quickly is always more than when travelling slowly (due to air resistance). The difference gets bigger the faster you go. The amount of fuel used still depends on engine efficiency, so you might find that going a little bit faster uses a little less fuel, but a lot faster will always use more fuel