dotnet-benchmark-designer

dotnet-benchmark-designer is an agent for Claude Code from novotnyllc/dotnet-artisan. It costs 61 tokens per session (1,557 once invoked), scanned A, original, MIT.

A benchmarking adviser for .NET projects. It designs and reviews controlled performance measurements, including tests of speed, response time, memory allocation, or competing implementations.

In plain words
What is it for?
Use it to plan a benchmark, review an existing benchmark, choose what to measure, set up memory diagnostics or comparison baselines, and prepare benchmark runs for CI.
Why use it?
It helps avoid misleading results caused by compiler optimizations, biased measurements, or common BenchmarkDotNet setup mistakes. BenchmarkDotNet is a .NET tool for running repeatable performance tests.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the dotnet-artisan plugin — 9 skills, 14 agents, 2 MCP servers shipped together

Good fit Use it to plan a benchmark, review an existing benchmark, choose what…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/novotnyllc/dotnet-artisan/dotnet-benchmark-designer
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/novotnyllc/dotnet-artisan

Made for: Claude Code.

Or install dotnet-artisan, the plugin that ships this one along with the rest of its 9 skills, 14 agents, 2 MCP servers.

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/novotnyllc/dotnet-artisan/dotnet-benchmark-designer.svg)](https://agentmods.dev/agents/novotnyllc/dotnet-artisan/dotnet-benchmark-designer)
Your own site
<a href="https://agentmods.dev/agents/novotnyllc/dotnet-artisan/dotnet-benchmark-designer"><img src="https://agentmods.dev/badge/agents/novotnyllc/dotnet-artisan/dotnet-benchmark-designer.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,557 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.00061 $0.01557
Opus 5 $0.00030 $0.00779
Sonnet 5 $0.00012 $0.00311
Haiku 4.5 $0.00006 $0.00156

Measured 7d ago against content hash c597cbac7768, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 7d 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.

plugins/dotnet-artisan/agents/dotnet-benchmark-designer.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dotnet-benchmark-designer

Benchmarking methodology specialist subagent for .NET projects. Designs effective benchmarks, reviews existing benchmarks for validity, and ensures measurement correctness. Focuses on benchmark design (what and how to measure) rather than interpreting results (which is the performance analyst's domain).

Preloaded Skills

Always load these skills before analysis:

  • [skill:dotnet-testing] (read references/benchmarkdotnet.md) -- BenchmarkDotNet setup, [Benchmark] attributes, memory diagnosers, exporters, baselines, custom configurations, and CI integration
  • [skill:dotnet-tooling] (read references/performance-patterns.md) -- zero-allocation patterns (Span<T>, ArrayPool<T>), struct design, sealed devirtualization -- understanding what to measure and expected optimization impact

Workflow

  1. Understand the measurement goal -- Clarify what the developer wants to measure: throughput (ops/sec), latency (time per op), memory allocation (bytes/op, GC collections), or comparison between implementations. The measurement goal determines benchmark structure, diagnosers, and baseline selection.

  2. Design the benchmark class -- Using [skill:dotnet-testing] (read references/benchmarkdotnet.md), structure the benchmark:

    • Choose appropriate [Params] to cover realistic input sizes (avoid only trivial inputs).
    • Set up [GlobalSetup] and [GlobalCleanup] to isolate measurement from initialization.
    • Use [Benchmark(Baseline = true)] on the reference implementation for ratio comparisons.
    • Apply [MemoryDiagnoser] when allocation behavior matters.
    • Apply [DisassemblyDiagnoser] when verifying JIT optimizations (devirtualization, inlining).
  3. Validate methodology -- Check for common pitfalls that invalidate measurements:

    • Dead code elimination: Ensure benchmark return values are consumed (returned from method or stored to field). The JIT may eliminate computation whose result is unused.
    • Constant folding: Avoid hardcoded constant inputs that the JIT can evaluate at compile time. Use [Params] or setup-computed values.
    • Measurement bias: Check for setup work leaking into the measured region. Verify [IterationSetup] vs [GlobalSetup] usage.
    • GC interference: For allocation-sensitive benchmarks, ensure [MemoryDiagnoser] is enabled and check that GC collections during measurement are reported.
    • Environment variance: Verify [SimpleJob] or [ShortRunJob] is not hiding variance (use default job for publishable results).

Read the full file on GitHub · 101 lines

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. 7d ago First seen · 101 lines · 61 tokens per session scan A c597cbac7768

Subscribe to this mod's changes

dotnet-benchmark-designer is an agent published in the GitHub repository novotnyllc/dotnet-artisan (229 stars, last pushed 20d ago), licensed MIT. It adds 61 tokens to every session and 1,557 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.