# Token Benchmark

> Measure baseline versus typed-decision pipelines using comparable token, call, latency, cost, retry, and quality data; generate honest Markdown reports and slides.

- Skill: `andersonlimahw/token-benchmark` (Agent Skill)
- Install (CLI): `npx skillmds@latest add andersonlimahw/token-benchmark`
- Raw SKILL.md: https://api.skillmd.com/api/skills/andersonlimahw/token-benchmark/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: Andersonlimahw (https://skillmd.com/u/andersonlimahw)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/andersonlimahw/token-benchmark

---


# Token Benchmark

## Required experiment design

1. Define same task set, inputs, acceptance criteria, concurrency, warmup, and sample count.
2. Capture one JSONL row per run using `references/usage-ledger.schema.json`; pair variants by `case_id`, pin tokenizer and evaluator versions, and keep provider/model/evidence constant within each variant.
3. Record actual provider usage when available. Otherwise label estimate and document tokenizer/method.
4. Compare total input/output/cached/reasoning tokens, calls, latency median/p95, schema retries, parse failures, task accuracy/calibration, and USD using dated price snapshot.
5. Do not compare token counts across different tokenizers as if units were identical. Show calls, latency, cost, and quality beside tokens.
6. Run `python3 scripts/benchmark.py runs.jsonl --baseline baseline --candidate typed --output report.md --slides slides.md` (Python standard library only).
7. Review generated report/slides; add methodology, limitations, and decision.

## Claim policy

- `measured`: observed in this experiment.
- `estimated`: derived from disclosed tokenizer or price assumptions.
- `vendor_claimed`: quoted claim with source/date; never present as reproduced result.

Provider terms may restrict publication of service benchmarks or use of brand names. Keep results internal unless applicable terms allow publication or written permission exists.

Do not optimize tokens alone. A cheaper invalid decision is regression.

