An old fashioned advantage of longer barrels was when shooting with open sights: a longer sight radius means more potential accuracy with irons. Today most shooters looking for accuracy often use scopes. BR rigs use longer rather than shorter barrels. The length of the barrel itself does not necessarily make the rifle more accurate. What it can do is help cause the ammo to have a more consistent MV; this allows for more consistent trajectories with commensurate results for accuracy.
For most mortals shooting sporter .22LR rifles, a 16" barrel would hardly make a perceptible difference in the same rifle over a 22" or 24" barrel. Quite often the same holds true for varmint or heavy barrel vs. a thinner or sporter barrel. The bottom line is that for most of us shooting low-to-mid-range ammo (SK Standard Plus, for example), differences in accuracy accrue more from individual rifles than from one model to another, heavy barrel or sporter barrel. In other words, a good example of a sporter barrel of a given model will be very competitive with a good example of a given model with a varmint barrel. Neither the skills of the average shooter nor the ammo he uses allows for there to be considerable differences between barrel lengths or thickness.