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

8. Memory-Bound Benchmarks

Andrey Akinshin1 
(1)
Saint Petersburg, Russia
 

Blaming perf issues on Garbage Collection is like blaming your hangover on your liver…

Its the thing that’s saving you from your code.

— Ben Adams

It’s a common situation for memory to be a bottleneck in your code. In this case, it’s very important to understand how memory works on different levels: from CPU to .NET runtime. This knowledge allows designing good benchmarks. On the other hand, if you don’t know some memory “features,”1 it’s very easy for you to design a wrong benchmark: you can miss an important part of the performance space or measure the performance of ...

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.