You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
This lesson covers the three main factors that affect CPU performance: clock speed, cache size, and number of cores. These are specified in OCR J277 Section 1.1.1 and are frequently tested in the exam.
The clock speed of a CPU is the number of fetch-decode-execute (FDE) cycles the CPU can complete per second. It is determined by the system clock — an electronic component that generates regular pulses to synchronise the CPU's operations.
| Unit | Cycles per second | Example |
|---|---|---|
| 1 Hz | 1 cycle | Original clocks |
| 1 MHz | 1 million cycles | Early PCs (1980s) |
| 1 GHz | 1 billion cycles | Modern CPUs |
A modern desktop CPU might have a clock speed of 3.5 GHz to 5.0 GHz, meaning it can perform 3.5 to 5 billion cycles every second.
Overclocking means increasing the clock speed beyond the manufacturer's recommended setting. This can improve performance but:
Cache memory is a small amount of very fast memory located inside or very close to the CPU. It stores copies of frequently accessed data and instructions so the CPU does not have to fetch them from the slower main memory (RAM) every time.
| Level | Speed | Size | Location |
|---|---|---|---|
| L1 cache | Fastest | Smallest (typically 32-64 KB per core) | Built into each CPU core |
| L2 cache | Fast | Medium (typically 256 KB - 1 MB per core) | Close to each CPU core |
| L3 cache | Slower than L1/L2 | Largest (typically 4-32 MB) | Shared between all cores |
OCR Exam Tip: If asked why cache improves performance, explain that it reduces the number of times the CPU needs to access slower main memory (RAM).
A core is an independent processing unit within the CPU. Each core has its own ALU, CU, and set of registers, and can carry out its own FDE cycle independently.
| CPU Type | Number of Cores |
|---|---|
| Single-core | 1 |
| Dual-core | 2 |
| Quad-core | 4 |
| Octa-core | 8 |
| Factor | What It Does | Advantage | Limitation |
|---|---|---|---|
| Clock speed | More FDE cycles per second | Faster processing of individual instructions | More heat; thermal throttling |
| Cache size | More data stored close to CPU | Fewer slow RAM accesses | Expensive; diminishing returns |
| Number of cores | Allows parallel processing | Multiple tasks handled simultaneously | Not all software can use multiple cores |
It depends on the workload:
Question: A student is choosing between two CPUs for video editing. CPU A has a clock speed of 4.5 GHz and 4 cores. CPU B has a clock speed of 3.2 GHz and 8 cores. Which should they choose?
Answer: CPU B is likely the better choice for video editing. Video editing software is designed to use multiple cores for parallel processing. Although CPU B has a lower clock speed, its 8 cores allow it to process multiple parts of a video simultaneously, which is more beneficial for this type of workload than raw clock speed.
OCR Exam Tip: You may be asked to recommend a CPU for a specific task. Always explain your reasoning by linking the task to the most relevant CPU factor.
CPU performance questions in OCR J277 almost always require you to weigh clock speed, core count and cache size against the real workload. Walking through a full worked comparison sharpens the habit of linking factor to task.
Scenario: A small 3D animation studio needs to buy a workstation for rendering short films. Rendering is a massively parallelisable workload — each frame (and even each region of a frame) can be processed independently. Artists also need the machine to feel responsive when previewing scenes in real time. Two CPUs are being compared:
Step 1 — identify the dominant factor for each part of the workload.
Step 2 — work through each factor.
Clock speed. CPU X completes 5 billion fetch-decode-execute cycles per second per core; CPU Y completes 3.6 billion. For a single-threaded task, CPU X will finish roughly 5.0 / 3.6 = 1.39 times faster than CPU Y. This means real-time preview will feel snappier on CPU X.
Number of cores. CPU Y has 16 cores to CPU X's 6. In a perfectly parallel rendering workload, CPU Y can process about 16 / 6 = 2.67 times as much work per second as CPU X. After accounting for clock-speed difference (CPU Y is 72% as fast per core), CPU Y still runs ahead on parallel work by about 2.67 x 0.72 = 1.92 — nearly twice as fast on a batch render.
Cache size. CPU Y's 48 MB L3 is four times larger than CPU X's 12 MB. 3D rendering works on large scene data; a bigger cache holds more of that data close to the cores, raising the cache-hit rate and reducing expensive RAM round-trips. Bigger cache compounds the benefit of more cores, because each core independently benefits.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.