My old LG 27UD88 switches in about 1 second when pressing the relevant hotkey in Lunar (https://lunar.fyi/)
It’s not instant but input switching through DDC is the fastest possible method.
That’s because the input that will be switched to is already connected and receiving video in the background, skipping the HDMI/DP protocol handshake and going straight into rendering the new video on the screen.