
microbenchmarking
Activate this skill when BenchmarkDotNet (BDN) is involved in the task
by dotnetFree
Description
This agent skill guides the writing, running, configuring and reviewing of BenchmarkDotNet (BDN) benchmarks in .NET. BenchmarkDotNet is a library for microbenchmarks, and the skill sets out its key concepts. A job describes how a benchmark runs, including runtime, iteration counts, launch count and environment settings. A benchmark case is one method combined with one parameter set and one job. An operation is the unit of work being measured, and an invocation is one call to the benchmark method. An iteration is a timed batch of invocations. The skill explains that a single benchmark number has limited value, and that results are most useful when compared against something, since they change with machine, operating system and runtime configuration. It warns that defaults and job settings have changed in recent BDN versions, so the agent should read the reference files for the task before writing code. It is for developers who measure performance in .NET code, and it is delivered as instructions for a coding agent that writes and reviews the benchmark project.…
Highlights
- Job, benchmark case and iteration concepts
- Comparative benchmark design
- Current BDN defaults from reference files
- Writing, running and reviewing benchmarks
Ratings & Reviews
No ratings yet
Be the first to rate microbenchmarking.
People also visit

benchmark-checklist
Vet a perf measurement (limiter, tuning, limits, errors, repeatability

perf-baseline-manager
Managing perf baselines, consolidating results, or comparing versions

perf-analyzer
Synthesizing perf findings into evidence-backed recommendations and decisions
microbenchmarking FAQ
What does the skill cover?
Creating, running, configuring and reviewing BenchmarkDotNet benchmarks.
Why should results be compared?
A single number is hard to interpret alone. Results change across machines, operating systems and runtime settings, so comparisons say more.
Why read the reference files first?
The skill says BDN defaults and job settings changed in recent versions, so older patterns may be wrong.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill microbenchmarking in your project.
What are the best microbenchmarking alternatives?
Popular alternatives to microbenchmarking include benchmark-checklist, performance and perf-baseline-manager. See all microbenchmarking alternatives










