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 choice of baseline can make the factor look much larger.

Related calculators

Books on Performance Analysis Ad

As an Amazon Associate I earn from qualifying purchases.

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. A function f that finishes in 20 ns per call is called millions of times. It is measured with an instrumentation profiler that inserts recording code at the entry and exit of functions. If the recording takes 60 ns in total per call and all of that time is counted as time in f, how many times its true time does the measured time of f become?
  4. Which is the basic formula for a program's CPU execution time?
  5. A program executing 1 billion instructions runs on a CPU with average CPI 2 and clock frequency 2 GHz. What is the execution time?

Comparisons in this topic