The results showed that people who’d only spent six hours in bed were as impaired as those who’d consumed two to three beers, while four hours of rest was equivalent to about five or six beers. Staying up all night was like throwing back ten to eleven beers and then trying to function normally.