The first CPU to reach a clock speed of 4 GHz was the Pentium 4 570 released in November 2004 as part of Intel's NetBurst microarchitecture, but this milestone wasn't achieved out of the box.
The Ryzen 7 5800X is built around the Zen 3 architecture, which lets this processor clock up to 4.7 GHz with ease. Even though it's just an eight-core processor, it still runs fast and smooth ...