Performance Analysis
What is the most appropriate approach when evaluating computer performance with benchmarks?
- AMeasure with programs close to the actual intended use and compare those results
- BDecide by the speed of a single small loop regardless of use
- CDecide by the manufacturer's published clock frequency alone
Show answer and explanation
Answer: A. Measure with programs close to the actual intended use and compare those results
Whether a computer is fast depends on what it is used for. Integer work, floating-point computation, memory-intensive processing and I/O-heavy workloads each favor different machines. So it is important to measure with programs as close as possible to actual use, or with standard benchmark suites collecting many representative programs, and to compare under matched conditions.
- A. Correct. Which computer is faster depends on the use.
- B. A small loop's results can differ greatly from real use.
- C. Frequency alone does not determine performance.