COMPORGA - Module 2
COMPORGA - Module 2
MODULE 2: COMPUTER
PERFORMANCE
TOPIC: Learning Objective
• In this module, we will discuss the important issue of ● To factors affecting
assessing the performance of a computer. In
computer performance
particular, we focus our discussion on a number of
performances. ● To understand factors
influencing the Success of
MODULE STRUCTURE: Computer Architecture
Design
I. Computer Performance
a. Factors Affecting Computer Performance ● To compute computer
b. Computer Performance Parameters/Measures performance
i. Relative Performance
ii. CPU time Resources Needed
iii. Clock Cycles Per Instruction
● Access to the Internet
iv. Million Instruction Per Second
v. Million floating-point instructions-per-second ● Computer or mobile
vi. Amdhal’s Law device
c. Measuring Performance Tool
d. Factors Influencing the Success of Computer
architecture
1
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
I. COMPUTER PERFORMANCE
There are various facets to the performance of a computer. For example, a user of a
computer measures its performance based on the time taken to execute a given
job (program). On the other hand, a laboratory engineer measures the
performance of his system by the total amount of work done in a given time. While
the user considers the program execution time a measure for performance, the
laboratory engineer considers the throughput a more important measure for
performance. A metric for assessing the performance of a computer helps
comparing alternative designs. Performance analysis should help answering
questions such as how fast can a program be executed using a given computer?
2
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
- This means that the more applications that are running the slower the
computer will perform.
7. Defragmenting Files
• Files that are broken or it takes long to read them will mean that the
computer will have to defragment them first.
But, since with multiprogramming the CPU works on another program while
waiting for I/O…
CPUtime - the time CPU is computing (not including extra-time; e.g. time waiting
for I/O or running other programs)
3
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
i. Relative Performance
- compare computer performances
Ex. If machine A runs a program in 10 seconds and machine B runs the same
program in 15 seconds. How many times machine A faster than machine B?
4
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
CPU TIME is the measurement of the length of time that data is being worked on
by the processor. It used as an indicator of how much processing is required for
a process or how CPU intensive a process or program is.
Clock Rate (Clock Frequency)
- The speed at which a microprocessor executes instructions
- usually measured in MHz (megahertz, or millions of pulses per second) or GHz
(gigahertz, or billions of pulses per second).
Clock Cycle Time (Clock Period)
- Time CPU spend per cycle
Cycle Count
- Number of cycles in one instruction
EX. CPU clock rate is 1 Megahertz. Program takes 4.5 million cycles to execute.
Compute for the CPU Clock Cycle Time and CPU time?
Other Solution:
EX. CPU clock frequency is 500 MHz. Program takes 45 million cycles to execute.
What’s the CPU time?
5
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
EX. Consider having a program that runs in 50 s on computer A, which has a 500
MHz clock. We would like to run the same program on another machine, B, in 20
s. If machine B requires 2.5 times as many clock cycles as machine A for the
same program, what clock rate must machine B have in MHz?
6
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
EX. Suppose that a set of benchmark programs with a total of 200 instruction
and a clock rate of 200MHz has the following measures:
7
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
EX.
8
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
9
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
For example – If the enhanced mode takes, say 3 seconds for a portion of
the program, while it is 6 seconds in the original mode, the improvement is 6/3.
This value is Speedup enhanced.
10
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
SPECCY
- developed by Piriform
- focuses on CPU and GPU
temperature
- Compatible in most computer
sensors
- Open-source
11
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
CPU-Z
• MONITY (MAC)
12
CEA - Computer Engineering
COMPORGA – COMPUTER ORGANIZATION AND ARCHITECTURE
Solve the following: (Show complete solution, box your final answer)
13