⌁ Hardware & electronics

How to choose a CPU: cores, threads, clock speed and cache

Cores, threads, clock speed and cache explained with concrete examples: what really matters in a processor and how to choose one for your actual workload.

When you compare two processors, the spec sheets seem designed to confuse: core count, threads, base clock, boost clock, L2 and L3 cache, TDP. Each of these values tells part of the story, but none of them alone tells you which processor will be faster for your work. Let's look at what each item means and how to read them together.

What a processor does

The CPU executes instructions: it fetches an instruction from memory, decodes it, executes it and writes the result. Modern processors don't do this in single file: they execute several instructions in parallel, run some ahead of time and predict the outcome of conditional branches. That is why two processors at the same clock speed can perform very differently: what matters is how much work they complete per clock cycle, the so-called IPC (instructions per cycle).

Cores and threads

A core is a complete processing unit. An eight-core processor can physically run eight instruction streams at the same time.

A hardware thread is an instruction stream that the operating system sees as a logical processor. With simultaneous multithreading (called Hyper-Threading by Intel, SMT by AMD) each core presents two threads: when one is waiting for data from memory, the other uses the idle execution units. The gain is real but it doesn't double performance: two threads on the same core share the same resources.

Many recent processors, especially Intel chips and ARM chips for phones and laptops, combine different kinds of cores: high-performance cores and smaller, efficient ones. The former handle heavy foreground tasks, the latter background activity with lower power draw. When you read "12 cores", it's always worth checking how many of each type there are.

How many cores you need

  • Office work, browsing, email: four modern cores are plenty.
  • Software development, virtual machines, lots of browser tabs: six to eight cores make work smoother.
  • Video rendering, long builds, scientific computing: here extra cores translate almost linearly into time saved.
  • Gaming: clock speed and IPC matter more; beyond six to eight cores the benefit usually shrinks.

Clock speed

Clock speed, measured in gigahertz, is how many cycles per second the processor completes. The base clock is the one guaranteed under sustained load within power limits; the boost clock is the one the processor reaches for short periods, often on a few cores, as long as temperature and power allow.

Comparing clock speeds only makes sense between processors of the same generation and architecture. A recent processor at 4 GHz can clearly beat one from a few generations ago at 4.5 GHz, because it completes more instructions per cycle.

Cache

RAM is slow compared to the processor. To keep it from waiting, the CPU keeps the most frequently used data in very fast internal memories, organised in levels:

Level Typical size Speed Sharing
L1 tens of KB per core highest per core
L2 hundreds of KB to a few MB per core very high per core or core cluster
L3 a few MB to tens of MB high shared between cores

A larger L3 cache helps mostly with workloads that touch lots of scattered data: some games, databases, simulations. It's no coincidence that there are processor versions with extra L3 cache stacked on the chip, designed precisely for these scenarios.

TDP and power draw

TDP (Thermal Design Power) indicates the thermal power the cooling system should be sized for under reference conditions. It is not the maximum power draw: under boost many processors exceed the stated TDP, sometimes by a lot. In a thin laptop the same processor may run slower than in a thicker one, simply because the manufacturer set lower power limits to keep temperatures and noise down.

Integrated graphics

Many processors include an integrated GPU. For office work, streaming video and even some photo editing it is more than enough, and it lets you skip a dedicated graphics card. Some desktop lines have none: in that case you must have a graphics card, if only to get a picture on the screen.

A practical selection method

In my work, when I recommend a processor, I follow this order:

  1. Define the main workload: what will the computer do most of the time?
  2. Settle the platform: compatible socket, motherboard and memory type, also considering future upgrades.
  3. Look at independent tests on the real workload: build, video export or specific game benchmarks are worth more than any spec-sheet number.
  4. Consider cooling and power: a very powerful processor with an inadequate cooler will never deliver its performance.
  5. Weigh price against performance: often the model just below the top of the range offers nearly the same performance for much less money.

In short

  • Performance depends on cores, clock speed and IPC together, not on a single number.
  • Extra threads help, but a thread is not worth a physical core.
  • Clock speeds should only be compared within the same architecture.
  • Cache, power limits and cooling matter as much as the headline specs.
  • Choose based on your real workload and independent tests of that workload.
MM
Marco Marzaduri

Marco Marzaduri works in cybersecurity, digital forensics and web development. With degrees in computer science and psychology, he combines technical analysis with an understanding of the human factor.

Read also