I pedal as long as it doesn't put me above the speed I am comfortable going. The speed I'm good at is based on curves, surface, wet/dry, death-wish-at-the-time, etc. A little burst of speed at the bottom helps the next climb. Diminishing returns of course but sometimes tricking the mind is just as important.