What factors affect the duration and outgassing of the terrestrial magma ocean?

What factors affect the duration and outgassing of the terrestrial magma ocean?