Processor Performance

Power Consumption
  • Power: an instantaneous measurement (Watts)
    • Desktop: 100W
    • Laptop: 25W
    • Phone: 1-2W
  • Energy: Total Capacity

Benchmark Types#

  1. Real - typical user application
  2. Kernel - Loop/function takes out of a real application
  3. Toy - puzzle/game
  4. Synthetic - not a real program, tests a particular functionality

SPEC CPU Benchmark#

  • Set of integer programs
  • Set of floating point programs (scientific applications)
  • updated every few years

Amdhl's Law#

Definition

Formula that gives the theoretical speedup in latency of the execution of a task at a fixed workload that can be expected of a system whose resources are improved

The following formula outlines the formula (Execution Time=ET)

ETnew=ETnotโ€…โ€Šaffected+ETaffectedamountโ€…โ€ŠimprovedET_{new}=ET_{not\;affected}+\frac{ET_{affected}}{amount\;improved}
startfinishstartfinish

Equations for CPU Performance#

CPUโ€…โ€Štime=(#โ€…โ€Šofโ€…โ€ŠCPUโ€…โ€Šclockโ€…โ€Šcycles)โ‹…(clockโ€…โ€Šcycleโ€…โ€Štime)CPU\;time=(\#\;of\;CPU\;clock\;cycles)\cdot(clock\;cycle\;time)

Note, clockโ€…โ€Šcycleโ€…โ€Štimeclock\;cycle\;time is shown below between aa and bb.

clkab

Cycles per instruction (CPI) is shown in the following equation.

CPI=totalโ€…โ€Š#โ€…โ€Šofโ€…โ€Šclockโ€…โ€Šcyclesinstructionโ€…โ€ŠcountCPI=\frac{total\;\#\;of\;clock\;cycles}{instruction\;count}

Conversly, IPC (instructions per cycle) is shown in the following equation.

IPC=instructionโ€…โ€Šcounttotalโ€…โ€Š#โ€…โ€Šofโ€…โ€Šclockโ€…โ€ŠcyclesIPC=\frac{instruction\;count}{total\;\#\;of\;clock\;cycles}

In the equation below, please not ICIC stands for Instruction Count

CPUโ€…โ€Štime=ICโ‹…CPIโ‹…clockโ€…โ€Šcycleโ€…โ€ŠtimeCPU\;time=IC\cdot CPI\cdot clock\;cycle\;time
Last updated on