20" or 24" 6mm Creedmoor Barrel for a gasser?

22 inches is a nice compromise, it depends on what you are using the rifle for.

What he said^^^

In my experience with my 6.5 creedmoor and 6mm Fat Rat a longer barrel is always preferable, you will get the best harmonics out of a 22" but 24" and 26" are very common, it all depends on what you want to use the rifle for. If you don't have to worry much about lugging it around I would go with the longer barrel.