I say you should fight each gym around the time your Pokemon are tougher than at least one of the gym leader's Pokemon because you are almost guarantee to win even if you have Pokemon at a disadvantage ( As long as you have more Pokemon.)
Hope I helped :)