Whichever powder makes more velocity in a 26" barrel will also make more velocity in your 22" barrel, assuming both powders are loaded to standard pressures (no squib loads, etc).
More pressure makes more velocity. Notice that I'm not referring to peak pressure, but total pressure over the length of the bore. All the powder is consumed within the first couple of inches of bore length, after that it's just expanding gases that push the bullet.