You can choose to hide/show the Dock automatically. This has a default speed to display the dock. You can speed it up with a defaults write command. This command removes the delay from when a cursor is hovered near the Dock. It doesn’t change the animation speed of the dock, only the response to the cursor.
Launch Terminal and enter the following command.
defaults write com.apple.dock autohide-delay -float 0;killall Dock
Revert to the default setting:
defaults delete com.apple.dock autohide-delay;killall Dock