1.1.3

Factors Affecting CPU Performance

Test yourself

Factors Affecting CPU Performance

Not all Central Processing Units (CPUs) will execute code at the same speed. Some processors will be faster than others depending on the following factors:

Illustrative background for Clock speedIllustrative background for Clock speed ?? "content

Clock speed

  • The CPU's clock sends a pulse at fixed intervals to trigger the next stage of the fetch, decode, execute (FDE) cycle.
  • The higher the clock speed, the more pulses are sent per second, so more instructions can be executed in the same amount of time.
Illustrative background for CoresIllustrative background for Cores ?? "content

Cores

  • Each core of a CPU is capable of processing instructions independently.
  • Each core has its own Control Unit (CU), and Arithmetic and Logic Unit (ALU), but the cores share access to cache and main memory.
  • Multiple cores allows a CPU to process multiple instructions at the same time.
Illustrative background for Cache memoryIllustrative background for Cache memory ?? "content

Cache memory

  • Cache memory is a small amount of very fast memory inside the CPU.
  • In comparison to the cache, accessing the Random Access Memory (RAM) is a very slow operation.
  • By storing frequently accessed data and instructions in cache memory we can avoid the process of accessing the RAM.

Pipelining

Pipelining is a feature which allows more processor operations to take place in less time.

Illustrative background for Idle processorIllustrative background for Idle processor ?? "content

Idle processor

  • Processors typically complete one instruction before moving on to the next.
  • This means parts of the processor are idle while the instruction is completed.
  • This is an inefficient process.
Illustrative background for Effect of pipeliningIllustrative background for Effect of pipelining ?? "content

Effect of pipelining

  • Pipelines ensure as much of the processor is in use all at one time and increase efficiency of the computer system.
  • Pipelining is usually split into two pipelines:
    • Instruction Pipeline.
    • Arithmetic Pipeline.
Illustrative background for Instruction pipelineIllustrative background for Instruction pipeline ?? "content

Instruction pipeline

  • The instruction pipeline will pre-fetch the next instruction and data and store it in a register.
  • As one instruction leaves the current instruction register (CIR), the next one is ready to be loaded and decoded.
  • At any given point, there are instructions being fetched, decoded and executed.
Illustrative background for Arithmetic pipelineIllustrative background for Arithmetic pipeline ?? "content

Arithmetic pipeline

  • The arithmetic pipeline divides up an arithmetic operation into its individual steps.
  • Each step is performed overlapping the next step.

Jump to other topics

1Components of a Computer

2Software & Software Development

3Exchanging Data

4Data Types, Data Structures & Algorithms

5Legal, Moral, Cultural & Ethical Issues

6Elements of Computational Thinking

6.1Thinking Abstractly

6.2Thinking Procedurally

6.3Thinking Logically

7Problem Solving & Programming

8Algorithms

Go student ad image

Unlock your full potential with GoStudent tutoring

  • Affordable 1:1 tutoring from the comfort of your home

  • Tutors are matched to your specific learning needs

  • 30+ school subjects covered

Book a free trial lesson