Early blackpowder was of poor quality, as were the handgonnes, and round balls are ballistically inefficient (and the actual projectiles were usually worse). So, probably pretty well, until you got too close.
P.S. The primary effect that I keep seeing mentioned is that they make a really loud noise and scare the crap out of everyone.
P.P.S As far as I can tell, the use of armor declines as the momentum of the projectiles (and number of firearms) goes up. Accuracy was the last attribute that was important on the battlefield. (Except for individual rate of fire.)
Besides, all that hot lead had to go somewhere. Maybe you wouldn't be hit by the guy in front of you, but you'd still risk getting hit by the one behind him or the ones next to him. Arrows may have been more precise, but at least you could see where they were going.