Speed in Minecraft is controlled by a measurement known as ticks. The command we input increases how often the ticks happen and therefore increases the speed. The command to type in is /gamerule randomTickSpeed #. In this gif, we change the tick speed to 500 and you can see the results immediately.