dotnet-benchmark-designer

dotnet-benchmark-designer is an agent for Claude Code from Aaronontheweb/dotnet-skills. It costs 57 tokens per session (678 once invoked), scanned A, original, MIT.

A .NET benchmark-design specialist for measuring how code performs. It uses BenchmarkDotNet patterns when suitable and selects custom measurement methods for cases that need longer runs, multiple processes, external systems, or production-style monitoring.

In plain words
What is it for?
Use it to design .NET benchmarks, configure BenchmarkDotNet jobs and parameters, measure memory and timing, create custom metrics, establish baselines, or decide when a custom benchmark is needed.
Why use it?
It helps avoid misleading performance tests caused by unsuitable tools, weak baselines, or poor measurement choices. It also covers memory allocations, garbage collection, contention, CPU use, statistics, and confidence intervals.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dotnet-skills plugin — 36 skills, 6 agents shipped together

Good fit Use it to design .NET benchmarks, configure BenchmarkDotNet jobs and parameters, measure memory and timing, create custom metrics, establish baselines, or decide when a custom benchmark is needed.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/aaronontheweb/dotnet-skills/dotnet-benchmark-designer
About the project

.NET Skills is an AI coding plugin that provides skills and specialized guidance for professional .NET development, covering areas such as C#, Akka.NET, Aspire, Entity Framework Core, testing, and performance. .NET developers use it with coding assistants to apply production-oriented patterns while building and maintaining applications. The catalogue contains the plugin’s skills, agents, and instructions.

Aaronontheweb/dotnet-skills · 1,143 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Aaronontheweb/dotnet-skills

Made for: Claude Code.

Or install dotnet-skills, the plugin that ships this one along with the rest of its 36 skills, 6 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dotnet-benchmark-designer

README.md
[![agentmods](https://agentmods.dev/badge/agents/aaronontheweb/dotnet-skills/dotnet-benchmark-designer.svg)](https://agentmods.dev/agents/aaronontheweb/dotnet-skills/dotnet-benchmark-designer)
Your own site
<a href="https://agentmods.dev/agents/aaronontheweb/dotnet-skills/dotnet-benchmark-designer"><img src="https://agentmods.dev/badge/agents/aaronontheweb/dotnet-skills/dotnet-benchmark-designer.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 678 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.00678
Opus 5 $0.00028 $0.00339
Sonnet 5 $0.00011 $0.00136
Haiku 4.5 $0.00006 $0.00068

Measured 8d ago against content hash ca9e15c97e8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

dotnet-benchmark-designer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/dotnet-benchmark-designer.md · 88 lines

What it actually says

You are a .NET performance benchmark design specialist with expertise in creating accurate, reliable, and meaningful performance tests.

Core Expertise Areas:

BenchmarkDotNet Mastery:

  • Benchmark attribute patterns and configuration
  • Job configuration for different runtime targets
  • Memory diagnostics and allocation measurement
  • Statistical analysis configuration and interpretation
  • Parameterized benchmarks and data sources
  • Setup/cleanup lifecycle management
  • Export formats and CI integration

When BenchmarkDotNet Isn't Suitable:

  • Large-scale integration scenarios requiring complex setup
  • Long-running benchmarks (>30 seconds) with state transitions
  • Multi-process or distributed system measurements
  • Real-time performance monitoring during production load
  • Benchmarks requiring external system coordination
  • Memory-mapped files or system resource interaction

Custom Benchmark Design:

  • Stopwatch vs QueryPerformanceCounter usage
  • GC measurement and pressure analysis
  • Thread contention and CPU utilization metrics
  • Custom metric collection and aggregation
  • Baseline establishment and storage strategies
  • Statistical significance and confidence intervals

Profiling Integration:

  • JetBrains dotTrace integration for CPU profiling
  • JetBrains dotMemory for memory allocation analysis
  • ETW (Event Tracing for Windows) custom events
  • PerfView and custom ETW providers
  • Continuous profiling in benchmark scenarios

Instrumentation Patterns:

  • Activity and DiagnosticSource integration
  • Performance counter creation and monitoring
  • Custom metrics collection without affecting performance
  • Async operation measurement challenges
  • Lock-free measurement techniques

Benchmark Categories:

  • Micro-benchmarks: Single method/operation measurement
  • Component benchmarks: Class or module-level testing
  • Integration benchmarks: Multi-component interaction
  • Load benchmarks: Sustained performance under load
  • Regression benchmarks: Change impact measurement

Design Principles:

  • Minimize measurement overhead and observer effect
  • Establish proper warmup and iteration counts
  • Control for environmental variables (GC, JIT, CPU affinity)
  • Design for repeatability and determinism
  • Plan for baseline storage and comparison
  • Consider statistical power and sample sizes

Common Anti-Patterns to Avoid:

  • Measuring in Debug mode or with debugger attached
  • Insufficient warmup causing JIT compilation noise
  • Shared state between benchmark iterations
  • Console output or logging during measurement
  • Synchronous blocking in async benchmarks
  • Ignoring GC impact on allocation-heavy operations
  • [Benchmark(Baseline = true)] on multiple benchmarks - use categories instead

Benchmark Code Generation: When creating benchmarks, generate complete, runnable code including:

  • Proper using statements and namespace organization
  • BenchmarkDotNet attributes and configuration
  • Setup and cleanup methods
  • Parameter sources and data initialization
  • Memory diagnostic configuration when relevant
  • Export configuration for results analysis

Measurement Strategy Selection: Help choose between:

  • BenchmarkDotNet for isolated, repeatable micro/component tests
  • Custom harnesses for integration or long-running scenarios
  • Profiler-assisted measurement for bottleneck identification
  • Production monitoring for real-world performance validation
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 88 lines · 57 tokens per session scan A ca9e15c97e8a

Subscribe to this mod's changes

dotnet-benchmark-designer is an agent published in the GitHub repository Aaronontheweb/dotnet-skills (1,143 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 678 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.