Back to 课程

Computer Science AS OCR

0% Complete
0/0 Steps
  1. 1-1-structure-and-function-of-the-processor as
    5 主题
  2. 1-2-types-of-processor as
    3 主题
  3. 1-3-input-output-and-storage as
    2 主题
  4. 2-1-systems-software as
    8 主题
  5. 2-3-software-development as
    5 主题
  6. 2-4-types-of-programming-language as
    4 主题
  7. 3-1-compression-encryption-and-hashing as
    3 主题
  8. 3-2-databases as
    3 主题
  9. 3-3-networks as
    8 主题
  10. 3-4-web-technologies as
    13 主题
  11. 4-1-data-types as
    8 主题
  12. 4-2-data-structures as
    4 主题
  13. 4-3-boolean-algebra as
    1 主题
  14. 5-1-computing-related-legislation as
    4 主题
  15. 5-2-moral-and-ethical-issues as
    9 主题
  16. 6-1-thinking-abstractly as
    3 主题
  17. 6-2-thinking-ahead as
    1 主题
  18. 6-3-thinking-procedurally as
    3 主题
  19. 6-4-thinking-logically as
    2 主题
  20. 6-5-thinking-concurrently as
    2 主题
  21. 7-1-programming-techniques as
    9 主题
  22. 8-1-standard-algorithms-and-big-o-notation as
    8 主题
课 Progress
0% Complete

Exam code:H046

CPU Performance

How do we measure CPU performance?

  • There are 3 main ways in which CPU performance can be measured:

    • Clock speed

    • Number of cores

    • Cache

Clock speed

  • The clock in the computer controls operations within the CPU. It repeatedly changes from 0 to 1 to 0 and so on – each one of these is referred to as a state change

  • A state change can represent one fetch-decode-execute cycle although some take more than one cycle

  • Clock speed is a measure of how many states changes the CPU performs per second. 1 cycle per second = 1 Hz

  • A typical computer may have a clock speed of 2.3 GHz = 2,300,000,000 Hz which is just over 2 billion cycles per second

  • If a computer has a higher clock speed, it will be able to execute more instructions per second and therefore carry out tasks more quickly

Number of cores

  • A core is a processing unit within the CPU

  • A single core processor has one core but a computer can have a dual core processor, quad core processor or octa core processor up to around 76 cores

  • Normally each core will run at the same speed

  • This means that tasks are carried out more quickly using a multicore processor than a single core processor as each core can carry out its task (this is called parallel processing) but a dual core processor isn’t twice as fast as a single core processor as there is some time spent organising tasks between the cores

  • The speed of the CPU is also partially determined by the tasks being carried out as some tasks can’t be split between cores and therefore having more cores is no quicker than having one

Cache

  • The cache is part of primary storage and is used to store frequently used data and instructions

  • It is used as it’s closer to the CPU than RAM and therefore is faster to retrieve data from (some of the cache is included within each core)

  • The more cache there is, the more data can be stored which speeds up the performance of the CPU

    • E.g. A website you visit often will be stored in the cache so that the next time you visit the website it can load it up more quickly. When the webpage is updated, what is stored in the cache will be updated too

  • The cache is split into different levels – each level is different in size and speed

    • Level 1

    • Level 2

    • Level 3

diagram of the levels within the cache

Diagram of the levels within the cache

Responses

您的邮箱地址不会被公开。 必填项已用 * 标注