dotnet-benchmark
Skill3 starsChanged 2 months agoMITView on GitHub
Run the Game.Benchmarks harness (--compare/--update-baseline) from the project root without `cd`, logging output to a single file and checking exit code + a targeted grep instead of reading the full (very verbose) BenchmarkDotNet log.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- codebeltnet/agentictheir own version, first seen Oct 3, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- codebeltnet/agentic★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/issue-clarification-questions.mdcCursor rule
- .cursor/rules/reset-font-assets.mdcCursor rule
- .cursor/rules/src-dotnet-build-release.mdcCursor rule
- .cursor/rules/unity-plugins-before-work.mdcCursor rule
- codex-issueSkill
- commitSkill
- complete-prdSkill
- dependency-docsSkill
- dotnet-buildSkill
- dotnet-testSkill
- generate-imageSkill
- implementSkill
- meeting-joinSkill
- meeting-scheduleSkill
- meeting-startSkill
- plan-reviewSkill
- planSkill
- prSkill
- specifySkill
- unity-e2e-runSkill
- unity-pluginsSkill
- add-terminal-commandSkill
- dependency-docsSkill
- dotnet-buildSkill
- dotnet-testSkill
- end-game-score-calibrationSkill
- flag-assetsSkill
- github-issue-automationSkill
- image-generationSkill
- localizationSkill
- meeting-joinSkill
- meeting-scheduleSkill
- meeting-startSkill
- milestone-completeSkill
- province-config-generatorSkill
- unity-e2e-runSkill
- unity-pluginsSkill
- unity-prefabsSkill
- unity-scenesSkill
- update-branchSkill
- cursor-meeting-joinSkill
- cursor-meeting-startSkill
- unity-pluginsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Run, in a single Bash tool call, with dangerouslyDisableSandbox: true (per this project's dotnet-command convention):
- Very specific: line 53
Check the exit code printed by the echo line — 0 for --compare means every gated benchmark passed (or is new, with no baseline yet).
- Distinctive: line 66
Delete the log when done with it, as a separate Bash call, per the temp-scripts run-then-delete convention.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
dotnet benchmark
Runs dotnet run --project src/Game.Benchmarks -c Release -- against the BenchmarkDotNet
perf harness (Docs/Specs/26_07_18_18_benchmarkdotnet-perf-harness/), avoiding the same
habits dotnet-build/dotnet-test avoid, plus one more specific to this harness:
- Never prefix the command with
cd. The Bash tool's working directory is already the project root for every call — a leadingcdis redundant and (per this project's shell rule) triggers an extra permission prompt for no benefit. - Log to one file, don't re-run to see more. Redirect stdout+stderr to a single log file.
- Don't
Readthe whole log. BenchmarkDotNet's own console output is extremely verbose (per-iteration pilot/warmup/actual lines, one block per benchmark method) — reading it in full wastes context for no benefit. Check the exit code first (it is the verdict — seeDocs/Benchmarks/READMEconventions), then use a single targeted Bashgrep/tailto pull just the parts that matter: the| Method | Mean | ... |summary table(s), and anything afterRegression(s) detected:/Benchmark(s) produced no results/No benchmarks matched.on stderr.
Args
/dotnet-benchmark (--compare|--update-baseline) [--benchmark <name>] [--epsilon <value>]
- Exactly one of
--compare/--update-baselineis required (mirrors the harness's own CLI contract — seesrc/Game.Benchmarks/Program.cs). - --benchmark (optional): case-insensitive substring filter against a benchmark class
name (e.g.
ControlSystem,CountryPopulationCollector). Omit to run the full suite — full-suite runs are slow (each benchmark method costs roughly 20-40s under BenchmarkDotNet's default job), so preferrun_in_background: truefor the Bash call, or scope to--benchmark <name>while iterating. - --epsilon (optional,
--compareonly): overrides the default 5% regression gate.
Steps
- Pick the log path:
.tmp/dotnet-benchmark.log(gitignored, per.claude/rules/temp_scripts.md). Run, in a single Bash tool call, with
dangerouslyDisableSandbox: true(per this project's dotnet-command convention):dotnet run --project src/Game.Benchmarks -c Release -- <args> > .tmp/dotnet-benchmark.log 2>&1 echo "EXIT:$?"For a full unfiltered suite run, pass
run_in_background: trueon the Bash call instead of waiting inline (a full pass across every benchmark class can run well past a single 10-minute foreground Bash timeout).- Check the exit code printed by the
echoline —0for--comparemeans every gated benchmark passed (or is new, with no baseline yet); non-zero means a regression, a benchmark that produced no results, or a--benchmarkfilter that matched nothing.--update-baselinereturns non-zero only on an execution error. - Pull just the useful parts with a single grep/tail Bash call (do not
Readthe full log — it is dominated by per-iteration BenchmarkDotNet diagnostic lines):
Combine both greps in one Bash call when possible.grep -A5 "^| Method" .tmp/dotnet-benchmark.log tail -20 .tmp/dotnet-benchmark.log - Cross-check
Docs/Benchmarks/summary.md(rewritten by every run) if a persisted, pre-formatted comparison table is more useful than parsing console output. - Delete the log when done with it, as a separate Bash call, per the temp-scripts run-then-delete convention.
Notes
- The harness's own CLI parses its flags itself and never forwards the raw process
argsinto BenchmarkDotNet's own parser — see the comment inProgram.cs. - A Debug build is rejected with a clear stderr message and exit code
2before touching BenchmarkDotNet at all — always pass-c Release.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

