Make less groups then. Of course it lags like hell when there are 144 groups with 8 - 10 men each. That's approx 1400 AI units your computer must deal with. Quality instead quantity is the key.
You can create units with the createUnit
commands. Or you spend some learning time and use the Dynamic AI Creator
addon/script to spawn them in their areas when you are close to them.