You may know this, but you're kidding yourself if you think your mental acuity is anything near optimal on 5 hrs of sleep. I don't care what you're drinking.
It takes about an hour before I can start churning clean code and start any code reviews, so I think I’m ok. Really, it’s the 3 in the afternoon feeling that is the drain for me. Alertness fades and I can’t even listen to music without an occasional syntax error.
You're kidding yourself if you think every human has the same sleep needs. For me 5 to 7 hours is optimal, 8 hours or more leaves me sluggish for the day.