performance-benchmark
Skill by open-telemetry
Generates and runs ad hoc BenchmarkDotNet benchmarks to measure the performance impact of code changes in opentelemetry-dotnet. Built for contributors to that repository who need benchmark evidence for a pull request.
Install performance-benchmark
Built from the published package, never by AI.
git clone --depth 1 https://github.com/open-telemetry/opentelemetry-dotnet /tmp/opentelemetry-dotnet && mkdir -p ~/.claude/skills && cp -r /tmp/opentelemetry-dotnet/.github/skills/performance-benchmark ~/.claude/skills/performance-benchmarkRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/open-telemetry/opentelemetry-dotnet /tmp/opentelemetry-dotnet && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/opentelemetry-dotnet/.github/skills/performance-benchmark ~/.gemini/antigravity-cli/skills/performance-benchmarkAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install performance-benchmark in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through writing and running performance benchmarks in the opentelemetry-dotnet repository. It explains how to add a [Benchmark] method to an existing class under test/Benchmarks, following the repository's conventions for setup, cleanup, baselines and memory diagnostics. It also covers running the root benchmark.ps1 script, which checks out a target and baseline ref, builds in Release and runs both.
The skill is intended for contributors to opentelemetry-dotnet who are asked to benchmark, profile or validate the performance of a change. It also describes how to report results, including pasting BenchmarkDotNet's markdown table and reporting allocations for instrumentation hot paths.
Written from the project's SKILL.md and checked against it.
What it can do
- Write benchmarksAdds a BenchmarkDotNet [Benchmark] method to an existing class under test/Benchmarks where possible.
- Compare against baselineRuns benchmark.ps1 to compare a target ref with a baseline ref, defaulting to main.
- Run a single branchUses -SkipBaseline to run only the target ref without a comparison.
- Memory diagnosticsAdds allocation reporting with -EnableMemoryDiagnoser or the --memory flag.
- Choose runtimes and jobsSelects target frameworks with -Runtimes and a short or default BenchmarkDotNet job with -Job.
- Direct ad hoc runRuns the benchmark project directly with dotnet run when no branch switching is wanted.
- Report resultsGuides pasting BenchmarkDotNet markdown tables and reporting Gen0 and Allocated columns.
What you need
- A clean git working tree
- PowerShell to run benchmark.ps1
- .NET SDK to build and run the benchmark project
- Windows to run net4xx runtimes
Try asking
- Benchmark my change to the sampler in opentelemetry-dotnet against main
- Add a BenchmarkDotNet benchmark for the new trace exporter path
- Run the metrics benchmarks with memory diagnostics and show the table
Good to know
- benchmark.ps1 requires a clean working tree because it switches branches.
- A new benchmark needs a benchmark-only commit to serve as the baseline.
- net4xx runtimes only work on Windows.
- Results on a given machine can drift several percent between runs.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .github/skills/performance-benchmark/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to performance-benchmark
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
performance-benchmark: common questions
How do I benchmark a change in opentelemetry-dotnet?
Write or extend a BenchmarkDotNet benchmark under test/Benchmarks and run it with the root benchmark.ps1 script. The script compares the target branch with a baseline ref, which defaults to main.
Why does benchmark.ps1 need a clean working tree?
The script switches branches to check out the target and baseline refs. Commit your changes or use a separate worktree or stash before running it.
Where are the benchmark results saved?
Artifacts are written to BenchmarkDotNet.Artifacts/<ref-name>/ at the repository root, with one subdirectory per ref.
How do I install performance-benchmark?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is performance-benchmark free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is performance-benchmark safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to performance-benchmark?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
