Your example proves zero. If you used rl16 in the other one, odds are you’re gaining velocity.I have 2 6.5 creedmoors. One is a 28 inch barrel that i shoot 140 berger vld hunting bullets, H4350 powder. It’s shooting 2,730fps with my load. My other one is a 24 inch barrel. Shooting 140 eldm with R16 at 2,831fps. Now dont tell me 4 inch of barrel adds 100 fps.. lol. Having a longer barrel dont always mean crap. These are both factory rifles with factory barrels. If speed is an issue then try another powder thats known to give speed...
Longer barrel usually will run a bit faster. Sometimes it does indeed mean crap. Crap in this case being added velocity.