benchmark

benchmark is a skill for Claude Code from RaNDoM6913/claude-code-superkit. It costs 14 tokens per session (771 once invoked), scanned A, original, MIT.

A Go benchmark runner that measures how fast code runs and how much memory it uses, with repeated tests and optional comparisons against another branch or commit.

In plain words
What is it for?
Use it to measure Go performance, memory use, and allocations, or compare current results with an older version of the code.
Why use it?
It removes the manual work of finding benchmarks, running them repeatedly, and comparing results. This helps reveal whether a code change made a program faster or slower.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go test -run='^$' -bench=. -benchmem -count=6 -timeout=10m ./package/....

Good fit Use it to measure Go performance, memory use, and allocations, or compare current results with an older version of the code.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit
agentmods
npx agentmods add skills/random6913/claude-code-superkit/benchmark

Made for: Claude Code.

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 benchmark

README.md
[![agentmods](https://agentmods.dev/badge/skills/random6913/claude-code-superkit/benchmark/github.svg)](https://agentmods.dev/skills/random6913/claude-code-superkit/benchmark)
Your own site
<a href="https://agentmods.dev/skills/random6913/claude-code-superkit/benchmark"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/benchmark/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for benchmark

Your own site · 80×15
<a href="https://agentmods.dev/skills/random6913/claude-code-superkit/benchmark"><img src="https://agentmods.dev/badge/skills/random6913/claude-code-superkit/benchmark.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 771 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.00014 $0.00771
Opus 5.5 $0.00006 $0.00308
Sonnet 5.5 $0.00003 $0.00154
Haiku 4.5 $0.00001 $0.00077

Measured today against content hash e85a8bf4e045, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

benchmark 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 today.

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.

packages/codex/skills/benchmark/SKILL.md · 50 lines

How it starts

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

Go Benchmark Runner

Read applicable AGENTS.md instructions and discover available command/file tools. Benchmarks execute project code: inspect setup and side effects, confirm the selected target is authorized, and report missing prerequisites instead of starting services or installing tools implicitly.

Step 1: Detect Project

  1. Locate the relevant go.mod and configured benchmark commands. If absent, report "No Go project detected" and stop.
  2. Find benchmark functions in the selected module's test files (for example, with rg). Inspect their dependencies and setup.
  3. If none exist, report "No benchmark functions found" and stop; do not invent results.

Step 2: Parse the Request

  • No target: use the project's configured default; otherwise name the package with the most discovered benchmark functions as the selected scope.
  • Package target: resolve and validate the requested package/pattern within the intended module.
  • --compare <ref>: compare the current declared source state with a validated commit/ref.

Treat request text as data, not shell syntax. Record source revision and relevant dirty changes, Go version, OS/architecture, CPU and benchmark flags/environment so results can be interpreted.

Step 3: Run Benchmarks

Use the project's configured command when present. A standalone example is:

go test -run='^$' -bench=. -benchmem -count=6 -timeout=10m ./package/...

Replace the package with the verified scope. -run='^$' excludes ordinary tests; package initialization and TestMain may still run. Preserve command exit and full output in a unique task-owned result directory, not a shared /tmp/bench-new.txt. A timeout, compilation failure or no matched benchmarks is incomplete evidence. Record samples rather than inventing an average or claiming six repetitions guarantee statistical significance.

Step 4: Compare (if requested)

  1. Resolve the comparison ref to a commit and verify the same benchmark cases/flags can run there.
  2. Use an isolated checkout through the environment's supported worktree mechanism, or a separate temporary checkout when appropriate. Keep the current branch, index, uncommitted files and stash unchanged; do not stash/switch/reset the user's checkout for comparison.
  3. Run baseline and current measurements under comparable toolchain, hardware, dependency and load conditions. State differing cases or environments; an added/changed benchmark body may not support a direct performance claim.
  4. Save baseline and current raw outputs separately with their revision identities and exits. If isolated execution is unavailable, report comparison blocked rather than modifying the original checkout.
  5. Use an installed benchstat version with the two result files and preserve its output. If absent, report raw measurements and unavailable statistical comparison; installing the latest tool is a separate authorized dependency change.
  6. Clean up only the disposable checkout created for this task through its supported lifecycle, after preserving result files and ensuring it contains no user work.

Read the full file on GitHub · 50 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. today Changed · -15 lines · +3 tokens per session e85a8bf4e045
  2. 1mo ago First seen · 65 lines · 11 tokens per session scan A 096eeb3893b9

Subscribe to this mod's changes

benchmark is a skill published in the GitHub repository RaNDoM6913/claude-code-superkit (3 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 771 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

Other skills, from other repositories

golang-testing

Go testing best practices including table-driven tests, test helpers, benchmarking, race detection, coverage analysis, and integration testing patterns. Use when writing or improving Go tests.

affaan-m/ECC · 37 tokens

golang-patterns

Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization. Use when working with Go code to apply idiomatic Go patterns.

affaan-m/ECC · 45 tokens

agent-go-expert

Specialist subagent: Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 75 tokens

golang-rules

Go coding rules: style, patterns, security, testing. Triggers: .go, go.mod, go.sum, Gin, Echo, Gorilla, testing, gofmt.

softspark/ai-toolkit · 40 tokens

api-development

Guidelines for building clean, scalable APIs with Go standard library and NestJS TypeScript, covering security, validation, and modular architecture.

Mindrally/skills · 30 tokens

go-ops

Go development patterns, concurrency, error handling, testing, and project structure. Use for: golang, go, goroutine, channel, context, errgroup, go test, go mod, go build, interface, generics, table-driven tests, worker pool, sync.Mutex, sync.WaitGroup, pprof, go vet, golangci-lint, go workspace, functional options…

0xDarkMatter/claude-mods · 89 tokens