Professional Documents
Culture Documents
Lecture 6
Performance Characteristics
• Instructions set
• Programming Language
• Compiler
• Programming implementation for application
Performance Characteristics
Clock Speed
• Direct comparison of clock speed does not tell the whole story
Performance Characteristics
Instruction Execution Rate
• Instruction Count: It is the number of machine instructions executed
for a program until it runs to completion or until some time interval
σ𝑛𝑖=1(𝐶𝑃𝐼𝑖 𝑥 𝐼𝑖 )
𝐶𝑃𝐼 =
𝐼𝑐
Performance Characteristics
Instruction Execution Rate
𝑇 = 𝐼𝑐 𝑥 𝐶𝑃𝐼 𝑥 𝜏
Performance Characteristics
Instruction Execution Rate
𝑇 = 𝐼𝑐 𝑥 [𝑝 + (𝑚𝑥𝑘)] 𝑥 𝜏
• p = Number of processor cycle to decode & execute
• m = memory references needed
• k = memory cycle time / processor cycle time
Performance Characteristics
Instruction Execution Rate
𝐼𝑐 𝑓
• MIPS rate =
𝑇 𝑥 106 𝐶𝑃𝐼 𝑥 106
• CPI : • CPI
( 45000𝑥1 + 32000𝑥2 + 15000𝑥2 +(8000𝑥2)
•
100000
• CPI: 1.55
Performance Characteristics
Example
• MIPS : • MIPS
𝑓 40𝑥106
•
𝐶𝑃𝐼 𝑥 106 1.55 𝑥106
MIPS: 25.8
Performance Characteristics
Example
106
1
= 𝑓
1−𝑓 +𝑁
Performance Characteristics
Amdahl Law 1
Speedup = 𝑓
1−𝑓 +𝑁
• If number of parallel processing tasks (f) is too small
• If N is too many then speed up is not effective
1
Speedup = 𝑓
1−𝑓 +𝑆𝑓
• https://www.youtube.com/watch?v=uHqbE3JiDPY&ab_channel=Tuto
rialsPoint%28India%29Ltd.