My sleep "schedule" is also all over the place due to sporadic early morning customer meetings, or late night international ones.
Oh the life of the startup.
I can work with too much sleep, if I have something that needs doing. But with too little, I find that the code I write isn't very good and wind up rewriting it later on. I write better code after a few drinks than when I haven't had enough sleep, for example.
If I sleep more than 7 hours, I am tired all day. If I eat too much I need a long nap.
If I am up late all weekend hacking, partying, or playing games, getting may 8 hours of sleep for the entire weekend, I may need to catch up for a week or two after that with 7 or 8 hours of sleep a night.
6 During the weekdays is an optimal number for me, as it allows me to get in to work early (7:30 or so) and leave and a decent time (5:30) to sync my schedules with my fiance who works 8-4 and then I can have supper and relax a bit and then have time to do some work if necessary before I go to bed at ~12-12:30