performance-benchmark
Skill by open-telemetry
Generates and runs ad hoc BenchmarkDotNet benchmarks to check the performance impact of a code change in opentelemetry-dotnet-contrib. Intended for validating performance claims in pull requests.
Install performance-benchmark
Built from the published package, never by AI.
git clone --depth 1 https://github.com/open-telemetry/opentelemetry-dotnet-contrib /tmp/opentelemetry-dotnet-contrib && mkdir -p ~/.claude/skills && cp -r /tmp/opentelemetry-dotnet-contrib/.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-contrib /tmp/opentelemetry-dotnet-contrib && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/opentelemetry-dotnet-contrib/.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 BenchmarkDotNet benchmarks for a code change in opentelemetry-dotnet-contrib. It explains how to locate or create a benchmark project under test/ with a *.Benchmarks name, and how to write a benchmark with GlobalSetup, GlobalCleanup, Params and MemoryDiagnoser. It also covers the repository's benchmark.ps1 script, which checks out a target ref and a baseline ref, builds, and runs the benchmark for each.
The skill is aimed at contributors who need to back up a performance claim in a PR. It says that results should be measured before and after the change, and that the BenchmarkDotNet results table should be included in the PR description or review comment. It also says regressions in specific scenarios should be called out.
Written from the project's SKILL.md and checked against it.
What it can do
- Benchmark project setupLocates an existing benchmark project or creates a new one based on an existing benchmark project.
- Benchmark writingWrites BenchmarkDotNet benchmarks that keep setup out of the measured method and use Params for variants.
- Baseline comparisonRuns benchmark.ps1 to compare a target ref against a baseline ref, default main.
- Memory diagnosticsEnables allocation measurement with MemoryDiagnoser or the -EnableMemoryDiagnoser option.
- Results reportingAdds the BenchmarkDotNet results table to a PR description or review comment.
What you need
- BenchmarkDotNet referenced through Directory.Packages.props
- A clean git working tree
- PowerShell to run benchmark.ps1
- Windows to run .NET Framework runtimes
Try asking
- Benchmark the effect of my change to the HTTP client instrumentation
- Write a BenchmarkDotNet benchmark for the sampler in AspNetCore
- Compare my branch against main and show the results table for the PR
Good to know
- benchmark.ps1 requires a clean working tree because it switches refs.
- A benchmark must exist with the same name in both refs for a comparison.
- A new benchmark should be committed separately and used as the baseline.
- The .NET Framework runtimes only run on Windows.
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
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
Does the skill run benchmarks against an older version of the code?
Yes. benchmark.ps1 checks out a baseline ref, which defaults to main, and runs the same benchmark there for comparison with the target ref.
Can I stash my changes before running the benchmark?
The skill advises against it. Stashing the benchmark or the change under test can make it absent from the refs the script checks out.
Where should benchmark results go?
The source says the BenchmarkDotNet results table should be included in the PR description or review comment, and a paraphrased summary can be added.
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 77 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.
