A rocket with more mass will speed up more slowly, just as in the horizontal example, but there is another effect. The force of gravity is now acting in the opposite direction to the thrust, so the resultant force pushing the rocket upwards is also less.