most of the points already made answer your question, but I just wanted to add that barrel quality, contour, twist rate, etc will all affect your accuracy way more than the length depending on style of shooting you do. If you are a br shooter and have a light contour barrel, but are throwing rounds down it quick, you'll burn out your barrel in no time and have accuracy issues. Just like if you have a barrel with a twist rate that's out of whack for what your shooting, you won't be getting optimum performance out of your rifle. Same as quality, a match grade barrel made by say kreiger will hold up to a lot more abuse that many factory barrels on cheaper rifles.
Just my $0.02, but unless your looking to get into precision shooting, don't let accuracy differences make your decision for you on barrel length. Most guys can't shoot to the level that they would ever know the difference (not saying you, just making a generalization cause some guys get hung up on this stuff, then go out and shoot a 1.5 MOA group at 100yds and are happy with it, lol)