Computer Architecture Measuring Performance
Computer Architecture Measuring Performance
MEASURING PERFORMANCE
Azhi A. Faraj
Performance
2
3
Measuring Performance
4
Execution time:
Time between start and completion of a task (including
disk accesses, memory accesses )
Throughput:
Total amount of work done in a given time
4
Performance of a Computer
5
5
Performance of difference 2 Computer
6
6
CPU Time
7
7
CPU Time (Example)
8
% of CPU time =
User CPU Time + System CPU Time
X 100 %
Execution time
8
CPU Time
9
9
Amdahls law
10
10
Amdahls law
11
Speedup depends on
Fraction of computation time in original machine that
can be converted to take advantage of the
enhancement
(Fraction Enhanced)
Improvement gains by enhanced execution mode
(Speedup Enhanced)
11
Example
12
12
Speedup
13
13
Example
14
14
Execution Time
15
15
Example
16
16
Answer
17
17
Remark
18
18
Example
19
19
Example
20
20
21
21
Computer Clock Times
22
CPU time = CPU clock cycles for a program x Clock cycle time
24
Example
25
25
Answer
26
26
CPU Clock Cycles
27
28
Answer
29
29
Measuring components of CPU performance
equation
30
30
CPU clock cycles
31
Suppose n different types of instruction
Let
ICi No. of times instruction i is executed in a program
CPIi Avg. no. of clock cycles for instruction i
31
Example
32
Design alternatives:
1. decrease CPI of FPSQR to 2
2. decrease average CPI of all FP operation to 2.5
33