What is the evolutionary advantage of double circulation and how does it give insight into the evolution of the vertebrate heart?

What is the evolutionary advantage of double circulation and how does it give insight into the evolution of the vertebrate heart? Compare the anatomy of the hearts of fish, amphibians, reptiles, birds, and mammals.