benchmark

benchmark is a skill for Claude Code, Codex from fmind/dot. It costs 38 tokens per session (857 once invoked), scanned A, original, MIT.

A measurement workflow for comparing command speed and testing how an HTTP endpoint behaves under load. HTTP throughput means how many requests a service can handle over time.

In plain words
What is it for?
Benchmark commands with hyperfine, load-test APIs with oha, and export results for pull requests, reports, or CI.
Why use it?
It replaces guesses about performance with repeatable timings, latency percentiles, scaling results, and before-and-after comparisons.

Skill for Claude CodeCodex

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.

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

Made for: Claude Code, Codex.

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/fmind/dot/benchmark.svg)](https://agentmods.dev/skills/fmind/dot/benchmark)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/benchmark"><img src="https://agentmods.dev/badge/skills/fmind/dot/benchmark.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 857 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00038 $0.00857
Opus 5 $0.00019 $0.00428
Sonnet 5 $0.00008 $0.00171
Haiku 4.5 $0.00004 $0.00086

Measured yesterday against content hash 0fa47fc3ac52, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

skills/benchmark/SKILL.md · 48 lines

How it starts

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

Benchmark

Two tools, two questions. hyperfine answers "how long does this command take" with warmup, repeated runs, and a comparison; oha answers "how does this endpoint behave under load" with latency percentiles and a live TUI. Diagnosing why something is slow belongs to systematic-debugging; this skill produces the numbers.

Commands

hyperfine --warmup 3 --runs 10 'old-cmd' 'new-cmd'                       # A/B with mean ± σ and a relative speed line
hyperfine --warmup 3 --prepare 'go build ./...' 'go test ./...'          # reset state before each run
hyperfine --parameter-list n 10,100,1000 'tool --items {n}'               # scaling curve
hyperfine --export-markdown bench.md --export-json bench.json 'cmd'       # tables for the PR, raw data for later
oha -z 30s -c 50 --latency-correction http://localhost:8080/health        # 30 s, 50 connections, coordinated-omission safe
oha -n 2000 -c 20 -m POST -H 'Content-Type: application/json' -d '{"q":1}' http://localhost:8080/api
oha --no-tui -z 10s -c 10 --output-format json -o oha.json http://localhost:8080/   # scriptable output for CI or a report

Workflow

  1. Fix the question: one command or endpoint, one metric (mean latency, p99, requests per second), one hypothesis.
  2. Control the machine: close heavy processes, run on AC power, and pin versions; record CPU, OS, and tool versions in the report.
  3. Warm up and repeat: at least 3 warmup runs and 10 measured runs for commands; at least 30 seconds for endpoints. Compare against a baseline measured the same way in the same session.
  4. Read the variance: a difference smaller than the standard deviation is noise; rerun with more iterations before claiming a win.
  5. Report: the command lines, the exported table, the relative change, and the conditions. Keep bench.json if the number will be tracked over time.

Gotchas

  • Never load-test a remote service you do not own or a production system without explicit approval; oha at 50 connections is a denial-of-service from the target's point of view.
  • Localhost numbers exclude the network: oha against localhost measures the server, not the user experience.
  • Shell startup pollutes short commands: use --shell=none in hyperfine for sub-10 ms commands, or -N.
  • Caches lie: a second run of a build or query hits caches; use --prepare to clear them when the cold path is what matters.
  • Cloud Run cold starts: benchmark with --min-instances known, and separate first-request latency from steady state per the cloud-run skill.

Read the full file on GitHub · 48 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. yesterday First seen · 48 lines · 38 tokens per session scan A 0fa47fc3ac52

Subscribe to this mod's changes

benchmark is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 857 once invoked, about $0.0002 per session on Opus 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-03.