Length shapes how a video is watched. Short videos suit quick answers, and longer ones suit tutorials and interviews. Checking the length of top videos for a topic shows what viewers there are used to.
For retention, compare length with average views and likes in the YouTube Video Statistics checker.