Dogs differ in size more than any other mammal.
The genetic factor that plays a large role in determining canine body size was around thousands of years prior to domestication. The mutation that gave us tiny dogs was found in ancient wolves. Read More HERE