Trying to compare a 22 RF to a BP load is a mistake. Most 22 RF ammo is loaded with a pretty fast smokeless and the pressure drops rapidly past probably 12-14". With standard velocity loads a 26" barrel has a very low report due to sub-sonic MV and the pressure dropping very low at the muzzle.
Black powder is a different propellant.
It has characteristics of a fast smokeless and characteristics of a slow rifle type smokeless, from pressure data I have seen for BPCR. It will impart very rapid acceleration to a bullet but will continue to push it along in longer barrels.
But round balls are not bullets. I suspect that for MOST applications with Modern BP that barrels over 34-36" are of little benefit. But remember the Kentucky rifle prior to probably 1800-1810 did not have access to a modern BP. Powders such as Swiss, Schuetzen and Goex did not exist or at best were very rare in 1800. Swiss for example is much like the highly refined powders of the late 19th C. The technology was not really in place to even make this powder in the 18th C.
So when we look at the long barrels we have to look at them in the context of the powders that were available.
The shorter barreled guns with heavier barrel contours of the last 2/3s of the 19th C are, in my opinion, a rusult of the improvements in powder making starting in the late 18th and early 19th C.
If someone wants to test this they need to order a 48 or 50" rifled barrel blank, straight round is best, screw it on a Pete Allen action and start shooting it with a charge that produces a velocity in 1750-1800 fps range with each of various brands and granulations of powders. Then start cutting it back in increments. But this is going to take a lot of powder an lead if testing say Swiss, one of the other European powders, Goex and their premium powder and one of the cheap import "battle" powders is the barrel is cut back to perhaps 10-12" in 1" or 2" increments with a full range of testing at each length. No need to worry about a stock with the Allen action. The round barrel can be clamped in a set of v blocks. But a good quality chrono needs to be used and it needs to be 15 feet out to reduce damage from patches striking it.
If someone has the energy they could dig out a first edition of Lymans BP book and compare the velocity vs charge vs barrel length between the C&H they used and the GOI. The C&H, being closer to blasting powder than Swiss for example, was pretty poor stuff and took a LOT of powder to make much velocity.
Dan