A CPU's performance depends on more than one factor. The big three:
Clock speed. Measured in hertz (Hz, GHz). One full clock cycle drives one step of the FDE cycle. Higher clock speed = more instructions per second, all else being equal.
Number of cores. Each core is a self-contained processor that can run its own FDE cycle. A quad-core CPU can run FOUR programs simultaneously, or split a multi-threaded program across cores. (Single-threaded programs only see one core's worth of speed.)
Cache size. Cache is fast on-chip memory holding frequently-used data and instructions. Trips to cache take a single cycle; trips to RAM take dozens. More cache = fewer waits.
Other factors.
- Word size — number of bits the CPU processes at once (32-bit vs 64-bit).
- Bus widths — how many bits move at a time.
- Architecture / instruction set — same clock speed can mean different real-world speed across CPU families.
Why this matters in real life. A 3.5 GHz dual-core can be SLOWER than a 2.5 GHz octa-core for software designed to use multiple threads (video editing, modern games). When buying a computer, balance all three.