How slow your code is?

Grigoriy Belenkiy
Software engineer at
@grishace
Denver Dev Day
November 22, 2019
TIMTOWTDI

Micro-Benchmarking
- DateTime.Now — naïve
- System.Diagnostics.Stopwatch — better
- BenchmarkDotNet
BenchmarkDotNet

BenchmarkDotNet
- .NET Framework (4.6+), .NET Core (2.0+), Mono, CoreRT
- C#, F#, Visual Basic
- Windows, Linux, macOS
BenchmarkDotNet
- Standard benchmarking routine
- Execution control
- Statistics
- Relative performance
- Memory diagnostics
- Parametrization
- Powerful reporting system