Helps write and run ad hoc BenchmarkDotNet tests to validate performance changes in .NET.
Install
mkdir -p .claude/skills/performance-benchmark && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1034" && unzip -o skill.zip -d .claude/skills/performance-benchmark && rm skill.zipInstalls to .claude/skills/performance-benchmark
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Generate and run ad hoc performance benchmarks to validate code changes. Use this when asked to benchmark, profile, or validate the performance impact of a code change in dotnet/runtime.Key capabilities
- →Generate BenchmarkDotNet microbenchmarks
- →Trigger EgorBot for automated performance runs
- →Isolate setup logic using GlobalSetup
- →Return values to prevent dead code elimination
- →Benchmark hot paths and typical usage
How it works
Developers write a BenchmarkDotNet class with specific attributes, then trigger EgorBot via a PR comment to execute the code against the base branch.
Inputs & outputs
When to use performance-benchmark
- →Creating performance benchmarks
- →Profiling code change impact
- →Validating runtime performance
- →Identifying performance bottlenecks
About performance-benchmark
Guides developers in creating accurate BenchmarkDotNet microbenchmarks. It emphasizes isolating logic, avoiding dead code elimination, and proper usage of setup methods to ensure reliable performance results.
Generate and run ad hoc performance benchmarks to validate code changes. Use this when asked to benchmark, profile, or validate the performance impact of a code change in dotnet/runtime.
When not to use it
- →Benchmarking edge cases or error paths
- →Comparing results across different cloud providers
- →Using DisassemblyDiagnoser on Linux
Prerequisites
Limitations
- →Results vary between runs due to VM differences
- →EgorBot polling can take up to 30 seconds
- →Maximum of 4 target flags per run
How it compares
Unlike manual local benchmarking, this workflow uses a bot to run standardized tests across specific hardware targets and automatically compares results against the base branch.
Compared to similar skills
performance-benchmark side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| performance-benchmark (this skill) | 3 | 6mo | No flags | Intermediate |
| mutation-testing | 0 | — | Review | Advanced |
| dotnet-testing-nsubstitute-mocking | 0 | 7mo | No flags | Beginner |
| asynkron-profiler | 0 | 2mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by dotnet
View all by dotnet →You might also like
mutation-testing
SebastienDegodez
Use when running mutation testing, killing mutants, verifying test quality, checking mutation score, or analyzing survivors after the test baseline is green
dotnet-testing-nsubstitute-mocking
rudironsoni
>
asynkron-profiler
managedcode
Use the open-source free `Asynkron.Profiler` dotnet tool for CLI-first CPU, allocation, exception, contention, and heap profiling of .NET commands or existing trace artifacts. USE FOR: Asynkron.Profiler setup; automation-friendly profiling output; CPU, allocation, exception, contention, and heap inv
perf-compare
microsoft
Benchmark the Reactor data-grid stress harness in the microsoft/microsoft-ui-reactor repo and compare this branch against the `main` baseline. Activate when a contributor asks to "benchmark my changes", "run the perf benchmark", "compare perf vs main", "how much faster/slower is my branch", "did my
csharp-pro
sickn33
Write modern C# code with advanced features like records, pattern matching, and async/await. Optimizes .NET applications, implements enterprise patterns, and ensures comprehensive testing. Use PROACTIVELY for C# refactoring, performance optimization, or complex .NET solutions.
backend-testing
exceptionless
Backend testing with xUnit, Foundatio.Xunit, integration tests with AppWebHostFactory, FluentClient, ProxyTimeProvider for time manipulation, and test data builders. Keywords: xUnit, Fact, Theory, integration tests, AppWebHostFactory, FluentClient, ProxyTimeProvider, TimeProvider, Foundatio.Xunit, TestWithLoggingBase, test data builders