Very good comments Coyotespotter. To go along with yours, I believe it was Bulberry that did some testing, could have been others, and for the average shooter they found that a barrel of 22 inch was about the best overall average.
But, as you say, ,many factors come into play and a person has to work on their rifle and what it tells or likes the best.