April 2018
Intermediate to advanced
300 pages
7h 41m
English
In this section, we will explore BenchmarkDotNet and learn how effectively it can be used to measure application performance.
It can simply be installed using a NuGet package manager console window or through the Project References section of your project. To install BenchmarkDotNet, execute the following command:
Install-Package BenchmarkDotNet
The preceding command adds a BenchmarkDotNet package from NuGet.org.
To test the BenchmarkDotNet tool, we will create a simple class that contains two methods to generate a Fibonacci series for a sequence of 10 numbers. The Fibonacci series can be implemented in multiple ways, which is why we are using it to measure which code snippet is faster and more performance efficient. ...