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.
A sword may not be an ideal weapon against an armored opponent, but half-swording with one is still very effective...
This sounds a bit like a Greek Hoplite Phalanx.
When people think pikemen, they think of very static formations, with little mobility. This is true of a lot of historical pike units, but the Swiss pikemen are the opposite of it. They drilled as small companies of ~100 men, and they were so successful because they made mobility as an unit into an art. A swiss pike block was drilled to change facing in seconds, and they liked to charge pikes levelled at near running speed. Many a condottiere got their last surprise when they were at the last stretch of their charge against an exposed flank or rear of a swiss block, and suddenly all the pikes rise, everyone turns, all the pikes come down again, and the swiss start charging the would-be attackers like madmen.
So, sending out a group armed with swords on the battlefield isn't going to do much. You want warhammers with backspikes that can pierce steel plate and crush bone, halberds that can hit so hard it crushes anything underneath armour, long pikes to keep the enemy at a distance, bows to pierce maille. The best weapon on the battlefield is actually mass. Get a group large enough close together and trample your opponents.
That's how most battles were won. In viking and early medieval times you would use large shields and short spears, create a shield wall and run over your opponent. Later on heavy cavalry appeared who could easily run over them. Cavalry dominated until the English started using the longbow en masse to kill the mounts of the cavalry. Swiss pikemen started using 6+ meter long pikes in tight bock formations. These pikes were so long that cavalry could be stopped dead before they reached the pikemen in a charge. It's like a wooden cumple zone. That pretty much spelled the end of heavy cavalry. Then soldiers started using halberds to get in between the pikes and crush pike blocks.
Swords were often carried on the battlefield but usually as a backup weapon, not as the primary weapon. Their cross shape granted them a lot of symbolic meaning in those religious times, but there are much better weapons available if you want to win large battles.