The powder is burned long before it exits the barrel.Fast powders burn themselves all up before the bullet leaves a longer barrel, slower powders are still burning before a bullet leaves a short barrel. They seem to have an ideal mix that works well on both short and long.
A 124/5 Gr load running around 1050ish from a 5" barrel when powered by N320 will gain next to nothing from a 16" carbine barre. (Real numbers from my chrono on more than one occasion.)
A 124/5 Gr bullet running 1150ish from a 5" barrel when powered by a midrange powder like AA #5, HS-6 etc will gain 150/200 plus FPS from a 16" barrel. (Again, real numbers from my chrono on numerous occasions.)
The powder that gives the fastest speeds in a 2" barrel wil also give the fastest speeds in a 16" barrel. For defensive work you will want to know the velocity range the JHP it is loaded with will work in, and what velocity gain you will see in your carbine, which will depend on the powder speed they used.
For plinkng I like 124/5s, both my plinking load and full loads. My 90 Gr "Little Lasers" that are so much fun in handguns are a waste in the AR (IMHO). They are about like the other loads, where in the pistols the difference is very noticeable. I save them for the pistols. They sure are fast in the AR (Near 1650 FPS), but a waste as far as fun factor goes compared to shooting them in the pistols.