Intel's recently-released Core i5-8600 comes with an identical boost frequency as the i5-8600K, for a lesser price that happens to match that of the Ryzen 5 2600X. While base frequency might look low with 3.1 GHz, in reality, out of the box, the processor runs above 4 GHz all the time.
Slow computer got you down? Maybe a hardware upgrade should be in your cards, if so this guide to the Fundamentals of Upgrading a PC is an invaluable read. PCSTATS Tips