Sample code from the TechAfternoon webinar on BenchmarkDotNet, a powerful .NET library for microbenchmarking.
All samples target .NET 10 and C# 14.
| # | Folder | What you'll learn |
|---|---|---|
| 1 | Getting Started | The basics — attributes, baselines, categories, run strategies, and the full lifecycle |
| 2 | Intermediate Scenarios | Exporters, power plans, params, argument sources, and async benchmarks |
| 3 | Advanced Scenarios | GC modes, EventPipe profiling, custom JIT config, and ranking columns |
| 4 | Real-world Scenarios | Comparing .NET collection types and benchmarking SQLite with Dapper |
- Attributes reference
- Understanding benchmark output
- Jobs & run strategies
- Database benchmarking overview
- Resources & tools
Webinar recorded on 8 Sep 2024