What is the difference between speed and average speed?

If I accelerate at constant acceleration from zero to ten miles per hour my average speed was five, total distance/total time. The average is not zero or ten, the instantaneous speeds at start and finish.