Craigster has it right. The amount of sound is determined by the pressure of the gas when the bullet exits the muzzle.
Shorter barrel = more pressure.
Longer barrel = less pressure.
Larger charge of longer burning powder = more pressure at bullet exit.
All that said, you're not likely to take much notice of 3dB differences (-50%, +100%).