Chapter 01
Chapter 01
5
Edition
th
Chapter 1
Computer Abstractions and
Technology
§1.6 Performance
Defining Performance
Which airplane has the best performance?
Boeing 777 Boeing 777
0 100 200 300 400 500 0 2000 4000 6000 8000 10000
Clock (cycles)
Data transfer
and computation
Update state
Performance improved by
Reducing number of clock cycles
Increasing clock rate
Relative frequency
• C is the number of instructions executed by the program (known as
the
instruction count, instruction path length, or dynamic program size)
Class A B C
CPI for class 1 2 3
IC in sequence 1 2 1 2
IC in sequence 2 4 1 1
Sequence 1: C = 5 Sequence 2: C = 6
Clock Cycles Clock Cycles
= 2×1 + 1×2 + 2×3 = 4×1 + 1×2 + 1×3
= 10 =9
Avg. CPI = 10/5 = 2.0 Avg. CPI = 9/6 = 1.5
Chapter 1 — Computer Abstractions and Technology — 18
Instructions Per Clock Cycle
CPI provides one way of comparing two different
implementations of the same ISA, since the number of
instructions executed for a program will be the same