mathews-tom/armory/benchmark-runner
Claude Code and agent skill by mathews-tom/armory
- community
Checking that the SKILL.md file is still in the repository.
Designs structured benchmarks comparing algorithms, models, or implementations with metrics, test cases, hardware context, and reproduction steps. Triggers on: "benchmark", "compare performance", "which is faster", "latency comparison", "run benchmark", "throughput test", "speed test".
Install
npx vskill@latest install mathews-tom/armory/benchmark-runnerSKILL.md
Benchmark Runner
Standardizes performance comparison methodology: metric selection, test case design, environment capture, result formatting, and tradeoff analysis. Produces reproducible benchmark reports that support informed decisions — not just "A is faster than B" but "A is faster for small inputs while B scales better."
Reference Files
| File | Contents | Load When | |
|---|---|---|---|
references/metric-selection.md | Metric catalog (latency percentiles, throughput, memory, accuracy), selection criteria per task type | Always | |
references/test-case-design.md | Representative input selection, scale variation, edge case coverage, warmup strategies | Always | |
references/environment-capture.md | Hardware/software context recording, reproducibility requirements, variance control | Always | |
references/statistical-rigor.md | Sample sizing, variance measurement, significance testing, outlier handling | Results need statistical validation |
Prerequisites
- Clear candidates to compare (at least 2)
- Access to run or observe the candidates (code, API, or existing results)
- Representative workload definition
Workflow
Phase 1: Define Scope
- What are the candidates? — Name each candidate precisely, including version.
"Python dict vs Redis" is too vague. "Python 3.12 dict (in-process) vs Redis 7.2 (localhost, TCP)" is testable.
- What claims need validation? — "A is faster" → faster at what? For what input
size? Under what load? Benchmark design flows from the specific claim.
- What is the decision context? — Why does this comparison matter? This determines
which metrics are most important.
Phase 2: Select Metrics
Choose metrics that match the decision context:
| Metric Category | Specific Metrics | When Important | |
|---|---|---|---|
| Latency | P50, P95, P99, mean, std dev | User-facing operations, API calls | |
| Throughput | ops/sec, tokens/sec, MB/sec | Batch processing, streaming | |
| Memory | Peak RSS, avg RSS, allocation rate | Resource-constrained environments | |
| Accuracy | F1, BLEU, exact match, precision/recall | ML models, algorithms with quality tradeoffs | |
| Cost | $/1K operations, $/hour, $/GB | Cloud services, API comparisons | |
| Startup | Time to first operation, cold start | Serverless, CLI tools |
Select 2-4 metrics. More than 4 makes comparison tables unreadable.
Phase 3: Design Test Cases
Create a matrix of inputs that reveal performance characteristics:
- Scale variation — Small, medium, large inputs. Performance often changes
non-linearly with scale.
- Representative data — Use realistic inputs, not synthetic best-case data.
- Edge cases — Empty input, maximum size, adversarial input.
- Warmup — Exclude JIT compilation, cache warming, and connection establishment
from measurements. Run N warmup iterations before recording.
Phase 4: Specify Environment
Record everything needed to reproduce the results:
- Hardware — CPU model, core count, RAM size, GPU model (if applicable)
- Software — OS version, language runtime version, dependency versions
- Configuration — Thread count, batch size, connection pool size, cache settings
- Isolation — What else was running? Background processes affect results.
Phase 5: Structure Results
Produce comparison tables with clear winners per metric, followed by tradeoff analysis.
Output Format
Environment setup
{commands to recreate the environment}
Run benchmark
{commands to execute the benchmark}
Configuring Scope
| Mode | Candidates | Depth | When to Use | |
|---|---|---|---|---|
quick | 2 candidates, 1-2 metrics | Single test case, no statistics | Rough comparison, sanity check | |
standard | 2-3 candidates, 2-4 metrics | 3 test cases, mean + std dev | Default for most comparisons | |
rigorous | Any count, full metric suite | Multiple test cases, percentiles, significance tests | Publication, critical decisions |
Calibration Rules
- Measure, don't guess. Intuition about performance is unreliable. "Obviously
faster" is not a benchmark result.
- Apples to apples. Candidates must be compared under identical conditions.
Different hardware, configuration, or input data invalidates the comparison.
- Report variance, not just means. A mean of 50ms with std dev of 100ms is not
the same as a mean of 50ms with std dev of 2ms. Always report spread.
- Warm up before measuring. First-run performance includes JIT, cache warming,
and connection setup. Exclude warmup iterations from results.
- Representative inputs only. Benchmarking with synthetic best-case input is
misleading. Use data that resembles production workloads.
- State the winner per metric, not overall. "A is better" is lazy. "A has lower
latency; B uses less memory" is useful.
Error Handling
| Problem | Resolution | |
|---|---|---|
| Cannot run candidates locally | Design the benchmark specification. Document what to measure and how. The user executes separately. | |
| Results are noisy (high variance) | Increase iteration count. Check for background processes. Use dedicated hardware or containers for isolation. | |
| Candidates serve different purposes | Acknowledge that the comparison is partial. Benchmark only the overlapping functionality. | |
| No baseline exists | Establish one candidate as the baseline. Report relative performance (e.g., "B is 1.3x faster than A"). | |
| Hardware context unavailable | Document what is known. Note that results may not be reproducible without full context. |
When NOT to Benchmark
Push back if:
- The comparison is not performance-related (feature comparison → use a decision matrix or ADR instead)
- The candidates are fundamentally different tools (comparing a database to a message queue)
- The user wants to benchmark trivial operations (comparing two string concatenation methods in Python)
- Results from others already exist and conditions match — link to existing benchmarks instead
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/benchmark-runner/SKILL.md
Popularity
- Repository stars
- 327
- Repository forks
- 51
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mathews-tom/armory/benchmark-runner)