Decades ago, Shooting Times magazine did an article that contained a experiment on rifle barrel length vs speed. I believe Wooters (sp) wrote it. Several rifle barrels 20-26 inches long were chrono'ed then cut down an inch and chrono'ed again. This went on until all barrels were about 16 (IIRC) inches long. The average speed loss was about 25fps/inch.
However, a longer barrel (to some reasonably max degree) still remains the cheapest and safest way to gain speed. Also, IMO, a longer barrel allows me to use slower powders (for a 95-100% fill) with heavy bullets at good speed at lower pressures thus lower throat temps for longer barrel life. YMMV.
ETA: For example, take a look in the 2 recent Nosler reloading guides. They use a 26 inch barrel in the 280 Rem and a 24 inch barrel for the 7mm RemMag & 7mm WhbyMag. The speeds are not that far apart even though much more powder is used in the mag's. The 7mm RemMag & WhbyMag would have much better showings in a 26 and more so in a 28 inch barrel with slow powders (H1000 or Retumbo) and heavy bullets.
However, a longer barrel (to some reasonably max degree) still remains the cheapest and safest way to gain speed. Also, IMO, a longer barrel allows me to use slower powders (for a 95-100% fill) with heavy bullets at good speed at lower pressures thus lower throat temps for longer barrel life. YMMV.
ETA: For example, take a look in the 2 recent Nosler reloading guides. They use a 26 inch barrel in the 280 Rem and a 24 inch barrel for the 7mm RemMag & 7mm WhbyMag. The speeds are not that far apart even though much more powder is used in the mag's. The 7mm RemMag & WhbyMag would have much better showings in a 26 and more so in a 28 inch barrel with slow powders (H1000 or Retumbo) and heavy bullets.