PE

performance-benchmark

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.zip

Installs 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.
186 chars✓ has a “when” trigger
Intermediate

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

You give it
C# benchmark class code
You get back
Performance metrics from EgorBot

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

BenchmarkDotNet attributesBenchmarkSwitcher assembly configuration

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.

SkillInstallsUpdatedSafetyDifficulty
performance-benchmark (this skill)36moNo flagsIntermediate
mutation-testing0—ReviewAdvanced
dotnet-testing-nsubstitute-mocking07moNo flagsBeginner
asynkron-profiler02moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

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

00

dotnet-testing-nsubstitute-mocking

rudironsoni

>

00

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

00

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

00

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.

953

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

316

Search skills

Search the agent skills registry