I've kept the T. pumila for several times in the same aquarium as the Scarlet badis and the Cherry shrimps. The first time I had to order them because they were not in store... I knew the minimum order amount is 10 individuals, so to also keep the stress level for them as minimum as possible I asked the shop to give me a call the moment they arrive and leave all in the bag. And I took all 10 home. I also know the wholesaler providing all the shops around my place always have wild-caught Pumila's. Then you'll never know the age and you have no idea about life expectancy. After a few months only had half of them still alive so I bought 10 new ones and a year after again a few. In my experience, the wild-caught specimen has an average lifespan of >2 years. I actually got a few to breed in a smaller tank and this offspring lived the longest +/- 3 years.
Regarding character, they are absolutely adorable little rascals, very curious and very bold for their size. They indeed love to harass shrimps... But in my case, the shrimp population was mature enough and the hardscape setup had abundant hiding places for shrimp fry. It is about impossible to eradicate them. Actually, after over 5 years, I still have this very same aquarium running with only 2 fish in it left. I waiting for them to perish of old age and then finally decide to take this tank down and or do something else with it. It still has a load of shrimps, the shrimps survived a few dozens of total 3 different species of potential shrimp hunting fish over a + 5 year period. All but the shrimps are gone by now.
These were to most fierce hunters I had in there at the same time as the pumila's
None of them was able to put the slightest dent in the shrimp population.
I guess it depends highly on, what species of shrimp you have at least you need an easy to breed shrimp. Then the maturity of the population and how the tank is set up to be able to sustain it regarding hiding places for the fry. Simply wait and see long enough how the shrimps do before you decide to add a potential shrimp hunting fish. If you started with few shrimps and after a while can count between 20 and 30 young adults you can bet you have over 3 times as much in hiding. And a lot in plain sight barely noticeable.
Anyway, T. pumila is absolutely gorgeous and interesting fish to keep. They occasionally (more than once a day) croak loud enough to hear it in a relative silent room. They display very nice colours and interesting territorial mating behaviour. Since they are very bold it's best not to keep them with other larger territorial species. If building a nest they will not shy back to attack everything that comes to close and pick a fight they might lose in the end because of the size difference.
Edit:
Actually, it's not the full truth I had one in there that did have a noticeable effect on the shrimp numbers and that was a totally different predator. It was Planaria.
And planaria come with feeding (frozen) life food... At one time it became a plague and the shrimp population drastically declined I had to kill the Planaria off. After that, the shrimp population grew back again.