Measure it using a series of cognitive performance tests. You could even just grade your own experience day to day - assuming you feel everything is a little worse when you sleep poorly (a sensible assumption), you will probably get representative data.
How do you do that?