That’s not really true, though desktop hardware hasn’t improved anywhere near as much as laptops, where the difference is very substantial. Computer hardware of equivalent cost or high-/low-endness has gotten quite a lot faster (and much more power-efficient); for many sorts of tasks similar CPUs will be four or more times as fast. But it’s really SSDs where the most obvious improvements have occurred, and for most
practical computing terms, compare a fast and expensive HDD machine of ten years ago with a cheap SSD machine from now and the modern one will be
waaaay faster.
Sample article doing some comparisons: https://www.techspot.com/article/1666-old-1000-cpu-vs-budget...