if i its well past my bed time, i'll go to sleep, wake up a bit early and do the homework. your brain and body need the sleep to function properfly, especially at such a young age
I try not to give advice unless I'm asked. But this is the kind of advice I couldn't give even when asked... Gosh it depends on some many things and how it fits with your life as a whole and your development as an individual. I too often find myself in similar situations to give advice. Good luck. The only thing I might have to add to this thread is that there is not a priori right or wrong decision. There never is. Thanks for an interesting thread though.
Fitzy is right, there is no way the quality of the work could be very good when the mind and body are over tired, presonally unless it really really matters, i wouldn't worry about it and would put my effort into making sure i don't end up in the same situation again.