© 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.