I've gone through a bunch of experiments(actually about 3) with the following conclusions.
1. I had a 9mm 5" CORE Magna Ported, shooting minor PF ammo, I honestly didn't notice any appreciable difference between it and a non ported barrel.
2. I then built a Open division M&P 9, with frame mounted optic, KKM barrel, and I tried a couple of compensators. Again with minor PF ammo, it was actually worse because I had to spring it so light for function that the recoil was harsher. I did start to experiment with Major PF, it got better and better until I found the sweet spot at around 172 PF (124gr bullet at 1400 fps). I shot that for a couple of years but the strain was too much for the M&P slide, I ended up cracking 2 slides. S&W did replace one pistol (not just the slide) but wouldn't replace the one with the Magnaport cuts in the slide.
3. Gave up and went with a gun that was built for a compensator. Has worked flawless for the last 2 years.
What does this all mean in your case? Probably that there's no real simple answer to your question. Compensators and Ports need to be big enough, and have sufficient volume of gas to operate efficiently. I can't think of any store bought ammo that has enough gas to operate one. So, with enough playing around with springs, port shapes, and making your own custom ammo, you can probably get it to do what you want. Good luck