This paper investigates the switching on switching rule and sampling input to guarantee (Q,S,R)-γ-dissipative and H2 performances for switched systems with mixed time delays. Synchronous switching can be used to overcome the difficulty in implementation of real-time switching for signals and sampling. The design of sampling input under arbitrary switching for a switched system is also considered in this paper. A new proposal for a full matrix formulation approach and inequality are applied to achieve the main results. Finally, some numerical examples are illustrated to show the efficiency of the main contribution.