Which kind of barrel shoots the farthest long or short?

To many variables to answer the question. You have to specify the caliber, whether it is a rifle, revolver or pistol and if the barrel is standard twist rate for the caliber.