performance:benchmark

performance:benchmark is a skill for Claude Code from bendrucker/claude. It costs 42 tokens per session (1,827 once invoked), scanned A, original, MIT.

A benchmarking workflow for comparing program or command performance under controlled conditions. A benchmark repeatedly measures the same scenario so one version or change can be compared with another.

In plain words
What is it for?
It checks existing benchmark setup, runs comparison arms from the same state, interleaves runs, measures the noise floor, and reports differences only when supported by the measurements.
Why use it?
It reduces misleading results caused by different starting states, machine drift, caches, or normal measurement noise.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the performance plugin — 3 skills shipped together

Good fit It checks existing benchmark setup, runs comparison arms from the same state, interleaves runs, measures the noise floor, and reports differences only when supported by the measurements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bendrucker/claude/benchmark
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.

Any agent
npx skills add bendrucker/claude --skill benchmark
Clone the repo
git clone --depth 1 https://github.com/bendrucker/claude

Made for: Claude Code.

Or install performance, the plugin that ships this one along with the rest of its 3 skills.

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 performance:benchmark

README.md
[![agentmods](https://agentmods.dev/badge/skills/bendrucker/claude/benchmark/github.svg)](https://agentmods.dev/skills/bendrucker/claude/benchmark)
Your own site
<a href="https://agentmods.dev/skills/bendrucker/claude/benchmark"><img src="https://agentmods.dev/badge/skills/bendrucker/claude/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 performance:benchmark

Your own site · 80×15
<a href="https://agentmods.dev/skills/bendrucker/claude/benchmark"><img src="https://agentmods.dev/badge/skills/bendrucker/claude/benchmark.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,827 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.00042 $0.01827
Opus 5.5 $0.00017 $0.00731
Sonnet 5.5 $0.00008 $0.00365
Haiku 4.5 $0.00004 $0.00183

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

Security

Grade A, and why

performance: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 yesterday.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/compare.integration.ts, scripts/compare.test.ts, scripts/compare.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/performance/skills/benchmark/SKILL.md · 94 lines

How it starts

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

Benchmark

Goal: a comparison the user can trust. Every arm runs the same scenario from the same starting state, the arms are interleaved so machine drift hits them equally, the noise floor is measured before any difference is read, and a difference counts only when it clears that floor.

Tools

  • hyperfine 2.0 or later: !hyperfine --version 2>/dev/null || echo "not found. Required unless the project's own tooling covers its job."
  • bun (runs compare.ts): !bun --version 2>/dev/null || echo "not found. Required for compare.ts."

Existing Tooling

Look for the project's own benchmarks before building one: package scripts, a bench/ directory, benchmark tests, CI jobs that time something. Check each against the requirements the setup below is built to meet:

  • Scenario. It runs the scenario the user cares about, from the same starting state every run.
  • Isolation. Network, remote state, and caches are stubbed, held fixed, or reset per run.
  • Interleaving. Arms alternate within one run or one process, so drift hits every arm.
  • Samples. It keeps every run's measurement, enough of them to show an A/A noise floor, not only a mean.
  • Significance. It reports a significance test, or its samples can feed compare.ts report.

Use the existing tooling when it meets every requirement. When it misses some, compose around it and keep its scenario: run its command as a compare.ts arm for interleaving and significance, or add a --prepare reset. Tell the user which requirement it missed and what you added.

Scenario

Pin the scenario before timing it. A run that changes its own input measures a different scenario each time.

  • Reset state per run with --prepare (restore a fixture, clear or warm a cache), and one-time setup with --setup. Match the cache state to the scenario the user cares about. A cold-start metric needs a cold cache on every run.
  • Stub or hold fixed everything outside the program: network, remote state, other processes' files. When the program syncs with a remote, point it at a local copy that stays unchanged.
  • Pass -N when the command is a single executable with arguments, which removes the shell's startup from every sample.
  • Before a baseline, put the machine on AC power with power saving off, and quiet it as far as it goes. When it cannot go idle, interleaving keeps the comparison fair. compare.ts records the load average around each round and flags rounds above twice the core count.
  • When the program is a test suite, raise the runner's timeout in every arm's command (bun test --timeout, pytest --timeout), so a load spike slows a run instead of failing it. Read the first timeout before raising it, since it can be a real cost worth a candidate.
  • For a shell script or shell startup (.zshrc, .bashrc), read references/shell.md.

Read the full file on GitHub · 94 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday Changed 51a3268f8ee8
  2. 19d ago First seen · 94 lines · 42 tokens per session scan A b7242a7f1eaa

Subscribe to this mod's changes

performance:benchmark is a skill published in the GitHub repository bendrucker/claude (18 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 1,827 once invoked, about $0.0002 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-09-29.

Related

Other skills, from other repositories

review

5-pass structured code review — correctness, security, performance, readability, consistency.

SethGammon/Citadel · 17 tokens

alive:system-upgrade

Upgrade ALIVE to the current version. Handles v1/v2/v3.x source states, multi-surface aware (alive-mcp / Hermes / Codex), retroactive version detection, partial-failure resume, dry-run previews, and rollback inspection.

alivecontext/alive · 57 tokens

pr-review

Comprehensive PR review across six dimensions — cost impact, environment drift, ownership gaps, SOC 2 compliance, deprecated API / version hygiene, and rollback feasibility. Each mode inspects the diff and current file state, reports findings with severity, and recommends concrete fixes. Use when preparing a PR for…

nitinjain999/platform-skills · 81 tokens

extract-resume

Parse a resume's uploaded PDF into structured JSON (basics, experience, projects, skills, education) and save it to the editor.

suxrobGM/jobpilot · 32 tokens

create-site

Creates a new Power Pages code site (SPA) from a curated template or from scratch using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, template selection or scaffolding, component planning, design, implementation, validation, and…

microsoft/power-platform-skills · 88 tokens

ensure-pipelines-host

Ensures the tenant has a usable Power Platform Pipelines host environment before any pipeline operation runs. Detects host state via the same resolution order as the Power Apps UI (org-db setting → BAP env metadata → default-custom-host setting); if any existing host (Platform or Custom) is found, uses it. If no host…

microsoft/power-platform-skills · 222 tokens