Computer Performance
Computer Performance
Computer
performance
The Computer Revolution
1. Progress in computer technology .
2. Makes novel applications feasible.
■ Computer in Automobile.
■ Cell phone
■ Worldwide web
■ Search engine …..etc.
Performance
■ Performance is the key to understanding underlying motivation
for the hardware and its organization
■ Measure, report, and summarize performance to enable users to
■ make intelligent choices
■ see through the marketing hype!
■ CPU time
■ doesn't count waiting for I/O or time spent running other programs
■ can be divided into user CPU time and system CPU time (OS calls)
CPU time = user CPU time + system CPU time
⇒ elapsed time = user CPU time + system CPU time + wait time
■ Our focus: user CPU time (CPU execution time or, simply,
execution time)
■ time spent executing the lines of code that are in our program
Definition of Performance
■ For some program running on machine X:
PerformanceX = 1 / Execution timeX
This means that for two computers X and Y, if the performance
of X is greater than the performance of Y,
We have
PerformanceX > PerformanceY
1/ execution of time X > 1/ execution time of Y
Execution timeY > Execution timeX
tick
equivalently
4th
5th
6th
...
time
■ Which sequence will be faster? How much? What is the CPI for each
sequence?
MIPS Example
■ Small benchmarks
■ nice for architects and designers
■ easy to standardize
■ can be abused!
■ Benchmark suites
■ Perfect Club: set of application codes
■ Livermore Loops: 24 loop kernels
■ Linpack: linear algebra package
■ SPEC: mix of code from industry organization
Summary
■ Performance is specific to a particular program
■ total execution time is a consistent summary of performance
■ For a given architecture performance increases come from:
■ increases in clock rate (without adverse CPI affects)
■ improvements in processor organization that lower CPI
■ compiler enhancements that lower CPI and/or instruction count
■ Pitfall: expecting improvement in one aspect of a machine’s
performance to affect the total performance