Comparing Performance
Tom Kelliher, CS 220
Oct. 26, 2007
Read 5.1-3.
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 the CD (In More Depth) for an interesting discussion of the
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?
Suppose we treat Machine A as a reference machine and normalize the run
times to Machine A's performance. What happens?
- 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
2007-10-25
Tom Kelliher