What problem does it solve?
This Skill helps you design and run trustworthy .NET microbenchmarks so you can measure performance correctly and compare implementations without being misled by BenchmarkDotNet pitfalls.
Core Features & Use Cases
- BenchmarkDotNet job and case design: explains how to structure jobs, benchmark cases, and operations/inputs so results are comparable.
- Correct configuration and execution: covers running with safe presets, filtering, artifact reading, and log handling to avoid wasted time and noisy measurements.
- Side-by-side comparison strategies: supports apples-to-apples comparisons across methods, runtimes, package versions, saved baselines, GC/JIT settings, and input scale.
- Measurement safety guardrails: emphasizes avoiding dead-code elimination, constant folding, deferred execution traps, and incorrect setup placement.
Quick Start
Use the microbenchmarking skill to create a BenchmarkDotNet suite for the performance question you have, validate it with a dry run, then run the filtered benchmarks with a suitable job preset and read the generated GitHub report summary.