Do you knead bread in a mixer for the same length as by hand?

A lot of bread recipes knead by hand. But if I'm using my bread hook on my mixer should I knead for the same amount of time and what do you think would be the best speed? I use a Kitchen Aid...not sure if that will make a difference.