At the end of a race you'll see three icons at the bottom of the screen. These let you know how your time compares to others.
1. Your time compared to your previous best time on the same track
2. Where you stand on the global leaderboard for the track
3. Where you stand on your friend leaderboard for the track