If you want to practice one-cycling the ender dragon for Minecraft speedruns, you can do so on this map! One Cycle Practice V2 by DefaultBTW.
In this map, you use 5 to 9 beds to kill the ender dragon as fast as possible.
If you want to restart, you can just open your inventory and put the nether star named "Restart" in your hand.