Performance Analysis

When evaluating a claim that "the new method is 100× faster," what is most important to check?

  1. AWhether 100 is an even number
  2. BThe length of the claimant's name
  3. CWhether the baseline was well optimized and whether the comparison used the same conditions and accuracy
Show answer and explanation

Answer: C. Whether the baseline was well optimized and whether the comparison used the same conditions and accuracy

Speedup depends heavily on what it is compared against. Comparing with an unoptimized old program or one using a single core easily yields large factors. Differences in data size, accuracy or measurement scope (for example whether transfer time is included) also make a comparison unfair. Evaluating a claim properly requires checking that the baseline and measurement conditions are clearly stated.

  • A. Properties of the number are irrelevant.
  • B. Names are irrelevant.
  • C. Correct. The baseline can make the factor look arbitrarily large.
Practice this topic Back to topic

More Performance Analysis questions

  1. Why is SSD performance often stated not only as sequential read bandwidth (MB/s) but also as 4 KB random-read IOPS (I/O operations per second)?
  2. Measuring per-element time for repeatedly reading an array while gradually growing its size shows time rising in steps at certain sizes. Why?
  3. Which is the basic formula for a program's CPU execution time?
  4. A program executing 1 billion instructions runs on a CPU with average CPI 2 and clock frequency 2 GHz. What is the execution time?
  5. A CPU design change raises clock frequency 1.5× but also raises CPI 1.2× (instruction count unchanged). How many times faster is execution?