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

3. How Environment Affects Performance

Andrey Akinshin1 
(1)
Saint Petersburg, Russia
 

The environment is everything that isn’t me.

— Albert Einstein

In Chapter 1, we discussed performance spaces. The main components of a performance space are source code, environment, and input data. The source code is a mathematical abstraction; it doesn’t have the “performance” characteristic. If you want to talk about how fast your program is, you should put it in a real environment. In each environment, the source code will have a long journey before we can discuss performance (see Figure 3-1).
Figure 3-1.

Source code journey

In this chapter, we will discuss different ...

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.