Rifles have higher muzzle velocity than pistols-especially .22 rifles.
The velocity gain from a long barrel is not as much as you might think. My chronograph reveals that a long rifle barrel only adds about 100 fps to the velocity achieved by a 7 inch pistol with .22 LR ammo. Once you go over 15 inches or so, the velocity actually goes back down, the powder is burned up and the rest of the barrel only tends to guide the bullet to the target. A TC Contender with a 12 inch barrel might actually have a higher muzzle velocity than a rifle with a 22 inch barrel when shooting .22LR ammo.