© Andrey Akinshin 2019
Andrey AkinshinPro .NET Benchmarkinghttps://doi.org/10.1007/978-1-4842-4941-3_2

2. Common Benchmarking Pitfalls

Andrey Akinshin1 
(1)
Saint Petersburg, Russia
 

If you have spent less than a week studying a benchmark result, it is probably wrong.

— Brendan Gregg, author of Systems Performance: Enterprise and the Cloud, Prentice Hall, 2013

In this chapter, we will discuss the most common mistakes that people make when they try to measure performance. If you want to write benchmarks, you have to accept the fact that most of the time you will be wrong. Unfortunately, there is no universally reliable way to verify that you get the performance metrics you wanted to get. There are many pitfalls on different levels: C# compiler, .NET ...

Get Pro .NET Benchmarking: The Art of Performance Measurement now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.