Finding out that your spouse wants a divorce can be incredibly devastating. There's no telling what they might want in the divorce or how they will proceed when it comes to things like child custody, spousal support, the family home and many other important items.
In general, things go more smoothly when people get along. Ironically, spouses usually separate due to being on different pages and wanting to go other directions. Regardless, agreement has a lot to do with how quickly you can get through the divorce process.