It helps boost your libido. Sleeping less than five hours a day may decrease your testosterone levels by 10 to 15 percent, according to a University of Chicago study. When you don’t have enough testosterone in your body, you may have a lower sex drive, weaker sperm, and difficulty getting it up. Sleep is essential for testosterone production, the researchers say. Get too little, and your body will produce chemicals that mess with your T.