Professional Documents
Culture Documents
EIE411 - Performance Measurement I
EIE411 - Performance Measurement I
ng
EIE411:
Computer Organization and Architecture
Module Topic: Performance Measurements and Analysis
www.covenantuniversity.edu.ng
2
Computing Instruction Execution Rate
• For example, if the processor is a 200 MHz processor, then
Clock frequency Number of clock per sec , = 200 = 200 × 10
Cycle time, = = = 5 × 10 sec = 5
×
ℎ =
=
=
www.covenantuniversity.edu.ng
3
Computing Instruction Execution Rate
• MIPS rate is the rate at which instructions are executed, expressed as millions
of instructions per second (MIPS).
• It is expressed as
= =
× 10 × 10
ℎ
= × ×
www.covenantuniversity.edu.ng
4
Computing Instruction Execution Rate
Sample Question:
A benchmark program is run on a 40 MHz processor. The executed program
consists of 100,000 instruction executions, with the following instruction mix
and clock cycle count:
Instruction type Instruction count Cycles per Instruction
Integer arithmetic 45,000 1
Data Transfer 32,000 2
Floating point 15,000 2
Control transfer 8,000 2
Determine the effective CPI, MIPS rate, and execution time for this program.
The picture can't be display ed.
www.covenantuniversity.edu.ng
5
Computing Instruction Execution Rate
Solution:
Clock frequency Number of clock per sec ,
= 40 = 40 × 10
1 1
Cycle time, = =
40 × 10
= 0.25 × 10 sec = 2.5 × 10
www.covenantuniversity.edu.ng
6
Computing Instruction Execution Rate
Instruction Type Instruction Cycles per CPIi x Ii
type count = Ii Instruction
= CPIi
Integer i=1 45,000 1 45,000
arithmetic
Data Transfer i=2 32,000 2 64,000
www.covenantuniversity.edu.ng
7
Computing Instruction Execution Rate
∑ ×
=
155000
= = 1.55
100000
40 × 10
= = = 25.81
× 10 1.55 × 10
≈ 26 millions of instructions per second
The picture can't be display ed.
www.covenantuniversity.edu.ng
8
Computing Instruction Execution Rate
ℎ ℎ
= × ×
= 100000 × 1.55 × 2.5 × 10
= 3.875 × 10 = 3.875
www.covenantuniversity.edu.ng
9
ClassWork
Consider two different machines, with two different instruction sets, both of which have a clock
rate of 200 MHz. The following measurements are recorded on the two machines running a
given set of benchmark programs:
Instruction Type Instruction Count Cycles per Instruction
(millions)
Machine A
Arithmetic and logic 8 1
Load and store 4 3
Branch 2 4
Others 4 3
Machine B
Arithmetic and logic 10 1
Load and store 8 2
Branch 2 4
Others 4 3
Determine the effective CPI, MIPS rate, and execution time for each machine.
Comment on the results.
The picture can't be display ed.
www.covenantuniversity.edu.ng
10