I find that I'm incredibly productive when I'm working at my own pace. Sometimes I can do in 4 hours at home what I would do in 10 hours at the office.
Worst thing is when you get sleepy and there's no chance of taking even a 15 minute nap. So you're wasted the entire rest of the day.