In an earthquake, which propagates faster, shear wave or longitudinal wave?

Earthquakes can be divided into three types according to their propagation modes: longitudinal wave, shear wave and surface wave. P-wave is a kind of propulsive wave, which propagates in the crust at a speed of 5.5 ~ 7 km/s. It first reached the epicenter, also called P wave, which made the ground shake up and down, and the damage was weak. Shear wave is a shear wave, which propagates in the crust at a speed of 3.2 ~ 4.0km/s and reaches the epicenter in seconds, also known as S wave. It is a mixed wave produced after P-wave and S-wave meet on the surface. It has a large wavelength and strong amplitude, and can only spread along the surface, which is the main factor causing strong damage to buildings.