Remove the delay for autohide and autoshow using the terminal
defaults write com.apple.Dock autohide-delay -float 0 && killall Dock
Return the delay for autohide and autoshow using the terminal
defaults delete com.apple.Dock autohide-delay && killall Dock
Source: http://osxdaily.com/2012/03/27/remove-auto-hide-dock-delay-mac-os-x/