Different powder types with different burn rates can greatly effect muzzle velocities from varying length barrels. Basically the slower the powder the longer the barrel needs to be to get the full expansion of gasses. Fast powders work best in short barrels. Typically shot shell powders have a very fast burn rate, magnum powders tend to burn a bit slower and are better with a longer barrel.