Speed is determined by body (recognizing image pattern, calculating necessary focus movements of the lens, sending command to lens) and by lens (executing the move) and also by the available light (dim light can cause 'focus hunting' - last resort of AF unit to find focused position of the lens).