All together with the washing machine:
Sportswear is delicate, and we should keep in mind that it's not like washing a cotton sheet. If you find it impossible to wash your sportswear right when you get home or finish your routine, the best thing to do is to hang it somewhere where it can air out, and never put it in the washing machine when it's sweaty.
If your washing machine doesn't have a specific programme for sportswear, it's best to choose a programme for delicate garments, where the temperature is low, the rinse is generous and the spin is short. This will help the fabrics continue to wick sweat outwards, keeping your body dry and comfortable while doing sport, and will prevent wear and tear on the fibres.