How do I speed up the animation time for switching between desktop spaces?
This looks like a duplicate of Speed up Mission Control animations in macOS Sierra

Here's the short answer. If you want extremely fast animations, this is your defaults write command:

defaults write com.apple.dock expose-animation-duration -float 0.1