During its second period of operation (Run 2) which started in 2015,
the LHC will reach a peak instantaneous luminosity of approximately 2$\times 10^{34}$ cm$^{-2}s^{-1}$
with an average pile-up of about 55, far larger than the design value. Under these conditions,
the online event selection is a very challenging task. In CMS, it is realised by a two-level trigger system:
the Level-1 (L1) Trigger, implemented in custom-designed electronics, and the High Level Trigger (HLT),
a streamlined version of the offline reconstruction software running on a computer farm.
In order to face this challenge, the L1 trigger has undergone a major upgrade compared to Run 1,
whereby all electronic boards of the system have been replaced, allowing more sophisticated algorithms to be run online.
Its last stage, the global trigger, is now able to perform complex selections and to compute high-level quantities, like invariant masses.
Likewise, the algorithms that run in the HLT went through big improvements;
in particular, new approaches for the online track reconstruction lead to a drastic reduction of the computing time,
and to much improved performance. This presentation will describe the performance of the upgraded trigger system in Run 2.