The 4" will be louder because less of the propellant is burning (comparatively) slowly in the barrel and is - basically - exploding upon dispersion at the muzzle. That said, it's not going to be a critical issue, and far less noticeable than a 2" vs. 8" barrel.
If shooting in low-light conditions, the muzzle flash will be appreciably more with the shorter barrel.
I suggest your barrel choice be determined by what the gun is being used for, such as carrying on a hike vs. target matches, etc.