benchmark
БесплатноЗапускает вложенные скриптыНе проверенUse when choosing between engines or models for an agent pipeline and the answer must come from measurement on your own data, not from marketing pages: speech…
от serejaris★ 251 звезда на GitHubОб этом скилле
Benchmark
Measure a pipeline on your own input before you pick an engine. One task file lists the variants; the scripts run them one by one in an isolated container and write numbers you can defend: time, cost per hour of input with a dated price source, quality against a reference.
Shape of a pipeline this skill knows:
input (recording) → ASR engine → transcript → author model (notes, chapters) → code checks → judge model
Each arrow is a slot. A variant fills one slot and keeps the rest fixed.
When to use
- «ElevenLabs, Whisper or a Russian engine: what does an hour of our meetings cost and who makes fewer mistakes»;
- «move the notes step from Claude to GLM: does quality hold»;
- before a pipeline goes unattended: pick the critic that finds the most real problems.
Not for: load testing, latency SLOs of a live service, model evals on public datasets.
Rules
- Isolation. Run in a dedicated container (LXC/VM), not on a laptop and not next to production: the timing is clean and the keys live only there. Egress: provider APIs; private network closed except the services the task needs (for example a self-hosted ASR).
- Keys only from env. The container gets a root-only env file; scripts read variable names from the task and never print values. Error bodies are redacted (some providers echo the key back).
- Same harness for every model. LLM steps run through
claude -p(Claude Code headless) against Anthropic-compatible endpoints; only the model changes. Tools, prompt, permissions stay the same. - Judge is never the author's model.
llm.pyrefuses such a variant. - No answer leaks. The author must not see the published result of the same input (a «form reference» that is the answer itself). Give it a sibling of the same kind.
- Prices carry source and date.
prices.json: every item hassourceandchecked; FX from the central bank of the day. A number without a source does not go into the report. - What was not run is a row too. Missing key, no balance, provider closed to new clients: write the reason and the list price, do not drop the row.
- Private input stays private. Transcripts and recordings go to a private repo; the analytics page shows only aggregate numbers.
Steps
- Task file (
task.example.json): input audio, language, terms list, reference transcript, ASR variants, LLM variants with judges,not_runrows with reasons. - Container. Create it by your infra rules (the section «Container» below). Install
ffmpeg, Python venv withhttpx jiwer faster-whisper, Node and@anthropic-ai/claude-code. Put keys into/etc/bench.env(root 600) through a pipe from your secret store. - ASR:
python3 scripts/asr.py --task task.json --out runs/<name>(engines run sequentially; ElevenLabs credits are read before and after). - LLM: write an adapter for your pipeline (contract in
scripts/llm.py), thenpython3 scripts/llm.py --task task.json --out runs/<name> --stage authoron the container and--stage judgewhere the judge's key lives (a subscription login on another machine is fine: the judge only reads files). - Score:
python3 scripts/score.py --task task.json --out runs/<name> --prices prices.json. - Page:
python3 scripts/report.py --results runs/<name>/results.json --out report.html --notes notes.md. - Method note next to the results: input, reference origin, what was not run and why, known biases.
Engines and providers
| Slot | Engine key | Tested | Needs |
|---|---|---|---|
| ASR | elevenlabs (Scribe, optional keyterms) |
yes | ELEVENLABS_API_KEY |
| ASR | openai_compat (/v1/audio/transcriptions: self-hosted GigaAM, speaches, cloud) |
yes | server URL, optional key |
| ASR | faster_whisper (CPU, int8) |
yes | model download once |
| ASR | openrouter_audio (chat with input_audio, chunked) |
request path only | OPENROUTER_API_KEY with balance |
| LLM | zai (GLM via api.z.ai/api/anthropic) |
yes | ZAI_API_KEY |
| LLM | anthropic-local (the login on this machine) |
yes | Claude Code logged in |
| LLM | openrouter, deepseek, anthropic-api, anthropic-oauth |
not yet | key with balance |
Yandex SpeechKit and SaluteSpeech have no adapter yet: add one to ENGINES in asr.py (input: audio path, output: text, raw response, usage) when you have a key.
Metrics
ASR (against the reference, after lower case, ё→е, punctuation and speaker tags removed):
wer,cer: word and character error rate;wer_termnorm: WER after known term distortions are fixed in both texts;term_accuracy: share of term mentions written canonically, canon / (canon + known distortions), no reference needed;term_recall: canonical term mentions vs. the reference;asr_pairwise_wer: engines against each other, independent of the reference;rtf: wall time / audio time.
LLM: code checks before and after the fix round, fix rounds, judges' verdicts with critical / majo
Установить benchmark в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл benchmark?
Use when choosing between engines or models for an agent pipeline and the answer must come from measurement on your own data, not from marketing pages: speech recognition for meeting recordings, the model that turns a transcript into notes, the critic model that checks it. Runs every variant in an isolated container, measures time, cost per hour of input (USD and RUB, with price source and date) and quality (WER/CER and course terms for ASR; code checks plus a judge of a different model for LLM steps), writes results.json/csv and one static analytics page. Triggers on "бенчмарк", "сравни движки", "сколько стоит час записи", "какую модель взять для пайплайна", "benchmark the pipeline", "compare ASR engines".
Как установить скилл benchmark?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл benchmark запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic