What affects CPU performance?
Three important factors are clock speed, number of cores and cache size. Each helps the CPU in a different way. They work together, but none guarantees a particular speed increase on its own.
Cambridge syllabus focus
Topic 3.5 asks you to explain how clock speed, the number of cores and cache size can affect CPU performance. Link each factor to what the CPU does, rather than simply saying that a computer is βfasterβ.
1. What is CPU clock speed?
The CPU's clock coordinates its operations by producing regular timing pulses. Clock speed is measured in hertz (Hz), usually gigahertz (GHz) for modern processors. A 3 GHz clock produces approximately 3 billion cycles per second.
Increasing clock speed means the CPU has more clock cycles available each second. On an otherwise identical CPU, this can allow more instructions to be processed in a given time. However, different instructions can require different numbers of cycles, and different CPU designs do different amounts of work per cycle.
Worked example: 2 GHz versus 3 GHz
Imagine the same processor design operating at 2 GHz and then 3 GHz, with all other conditions equal. The 3 GHz setting provides 50% more cycles per second: 3 Γ· 2 = 1.5. That does not guarantee a 50% improvement in every program because memory delays and other bottlenecks can limit performance.
Not necessarily. Architecture, work completed per cycle, cooling and other components also matter. Compare clock speeds most confidently when the processors are otherwise equivalent.
2. How does the number of cores affect performance?
A core is a processing unit within a CPU that can execute instructions. A multi-core CPU has two or more cores, allowing suitable tasks or threads to run concurrently.
Single-core CPU
One core carries out instruction processing, switching between tasks when needed.
Quad-core CPU
Four cores can work on separate threads at the same time when software supports it.
Extra cores are particularly useful when several programs are running or an application can split its work into independent tasks. A program that uses only one core may gain little from additional cores.
Worked example: editing and exporting a video
A video editor may divide encoding work across multiple cores, potentially completing the export sooner. In contrast, a simple single-threaded calculation may not run much faster on eight cores than on four, assuming similar per-core performance.
3. What is CPU cache and why does it matter?
Cache is a small amount of very fast memory located on or close to the CPU. It stores frequently or recently used data and instructions so the processor can access them more quickly than if it had to fetch them from main memory (RAM).
When requested data is already in cache, this is called a cache hit. When it is not present, a cache miss means the CPU must obtain it from a slower level of memory, often RAM. A larger cache may hold more useful data and reduce some slower memory accesses, but its benefit depends on the program's access pattern.
Worked example: repeatedly using the same data
Suppose a program repeatedly reads values from a small array. If those values fit in cache, the CPU can often access them without repeatedly waiting for RAM. Increasing cache size may help if it allows more of the program's active data to stay in cache.
No. Both store data and instructions temporarily, but cache is smaller and generally faster, while RAM has much greater capacity.
Compare the three factors
| Factor | What it changes | Why it can help | Limitation |
|---|---|---|---|
| Clock speed | Cycles per second | More opportunities to execute operations each second | Does not measure work per cycle |
| Number of cores | Parallel processing capacity | More suitable tasks/threads can run concurrently | Software must make use of the cores |
| Cache size | Capacity of fast CPU-accessible memory | Can reduce slower RAM accesses | Benefit depends on data access patterns |
Which factor should you mention in an exam?
Read the scenario carefully. If it describes a processor with a higher GHz rating, explain the greater number of clock cycles per second. If it describes running several tasks together, discuss multiple cores. If it describes repeated access to the same data or instructions, discuss cache.
Check your understanding 1
A program uses only one processing thread. Will doubling the core count necessarily halve its running time?
Reveal answer
No. The program cannot automatically divide its work across the additional cores. Other factors may also limit its speed.
Check your understanding 2
Why can cache improve CPU performance?
Reveal answer
Cache stores frequently or recently used data and instructions close to the CPU, reducing the need for slower RAM accesses when the requested information is in cache.
Common Cambridge exam mistakes
GHz measures cycles per second, not instructions per cycle.
Extra cores support parallel work; they do not automatically accelerate one instruction.
CPU cache temporarily holds useful data and instructions. It is not permanent secondary storage.
It may reduce memory access delays, but the improvement depends on workload and cache usage.
Original FutureLogic exam-style practice
These are original teaching questions, not official Cambridge examination questions. Suggested marks are indicative.
Question 1 β 2 marks
Explain how increasing clock speed may improve CPU performance.
Reveal model answer
A higher clock speed provides more clock cycles per second (1), potentially allowing an otherwise identical CPU to process more operations in a given time (1).
Question 2 β 3 marks
Explain why a CPU with four cores may perform better than a single-core CPU when several applications are running.
Reveal model answer
Each core can execute instructions (1). Multiple cores allow suitable tasks or threads to run at the same time (1), reducing the need for one core to switch between all the applications' work (1).
Question 3 β 3 marks
Explain how cache can improve the performance of a CPU.
Reveal model answer
Cache holds frequently or recently used data and instructions (1). It is faster to access than RAM (1), so cache hits reduce the time the CPU waits for information (1).
Question 4 β 4 marks
A student claims: βA CPU with twice as many cores will always finish a program in half the time.β Explain why this is not necessarily true.
Reveal model answer
The program may not support splitting its work into parallel threads (1). Some steps may have to run in sequence (1). Extra cores may therefore remain unused for part of the program (1), and other bottlenecks such as memory access can limit performance (1).
Quick quiz
- What unit is used to measure clock speed?
- What does a CPU core do?
- When are additional cores particularly useful?
- What is a cache hit?
- Why can a larger cache help?
- Does higher clock speed always mean higher performance?
Reveal quiz answers
Show all answers
- Hertz (Hz), often GHz.
- Executes instructions.
- When software can run multiple threads or tasks concurrently.
- The requested data or instruction is already in cache.
- It may keep more useful information near the CPU and reduce RAM accesses.
- No; CPU design and other bottlenecks matter.
Final summary
Clock speed
More cycles each second.
Core count
More opportunities for parallel work.
Cache
Faster access to useful data and instructions.
Exam technique
Explain the mechanism, then its possible effect.