It is better to compare your previous performance with your current performance rather than comparing yourself with others. However, as you do this, don't get depressed if you find your past self better than the current one. This I think is a better way to motivate myself.
!PIZZA
this is it, the only comparison we should do is on our past and present, we should always endeavour to make sure our present is better than the past.