Skip to content

Commit

Permalink
[Chapter2] Cosmetics. part6
Browse files Browse the repository at this point in the history
  • Loading branch information
dendibakh committed Sep 6, 2024
1 parent 1273f00 commit 0aaeb4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Measuring Performance {#sec:secMeasPerf}

The first step to understanding the performance of an application is to measure it. Anyone ever concerned with performance evaluations likely knows how hard it is sometimes to conduct fair performance measurements and draw accurate conclusions from them. Performance measurements can be very unexpected and counterintuitive. Changing a seemingly unrelated part of the source code can surprise us with a significant impact on the performance of the program. For various reasons, performance measurements may consistently overestimate or underestimate the true value, which leads to distorted results that do not accurately reflect reality. This phenomenon is called *measurement bias*.
The first step to understanding the performance of an application is to measure it. Anyone ever concerned with performance evaluations likely knows how hard it is sometimes to conduct fair performance measurements and draw accurate conclusions from them. Performance measurements can be very unexpected and counterintuitive. Changing a seemingly unrelated part of the source code can surprise us with a significant impact on the performance of the program. For various reasons, measurements may consistently overestimate or underestimate the true performance, which leads to distorted results that do not accurately reflect reality. This phenomenon is called *measurement bias*.

Performance problems are often harder to reproduce and root cause than most functional issues. Every run of a program is usually functionally the same but somewhat different from a performance standpoint. For example, when unpacking a zip file, we get the same result over and over again, which means this operation is reproducible. However, it's impossible to reproduce the same CPU cycle-by-cycle performance profile of this operation.

Expand Down

0 comments on commit 0aaeb4b

Please sign in to comment.