I think i might have mentioned something about muzzle breaks and velocity loss a while ago in a different thread. Allow me to clear up what i ment, in case thats what you read:
Imagine having a 14.5" M4 barrel, with a comp. permanently installed to bring it up to the legal 16". Now you've got a 16" long "barrel", with only 14.5" worth of velocity (because 1.5" of it is acctually just the comp). Your velocity out of this barrel will be 3064 FPS (win. 55gr. @ 0 degrees RH-20%)
Now imagine having a just plain 16" barrel. You've got the same amount of overall length as example above, but this time, all 16" are barrel. Therefore you get more velocity, with the same amout of bulk: 3132 FPS (win. 55gr. @ 0 degrees RH-20%)
I hope that made it clear. So adding a comp will NOT cause any loss in velocity as long as the barrel is the same length.