Comparing Performance
Tom Kelliher, CS 220
Nov. 2, 2005
Read 5.1-3.
Homework due Nov. 9: 3.9, 3.30, 4.10, 4.14, 4.15.
Measuring performance.
- More definitions and terms.
- Practice.
Building a simple MIPS datapath.
- How should we summarize several benchmarks?
- Should we summarize?
- Use sum of execution times.
- Arithmetic mean is proportional.
- See CD (In More Depth) for interesting discussion of use of
geometric means.
Example:
| |
Machine A |
Machine B |
| Program 1 (seconds) |
1 |
10 |
| Program 2 |
1000 |
100 |
| Total time |
1001 |
110 |
- Which machine is faster on Program 1? Program 2? Combined?
- Would your answer vary depending on execution frequency? How
could we account for this? (Weighted average.)
- Native MIPS:
As opposed to peak MIPS or relative MIPS.
Native MIPS can vary inversely with CPU time!
- Useful design principle: Make the common case fast.
Problems 4.38-4.44.
Thomas P. Kelliher
2005-11-01
Tom Kelliher