Skip to content
Back to skills

Hyperfine Benchmarking

ASecurity

Use this skill to benchmark shell commands reliably with warmup runs, statistical summaries, and exportable artifacts using hyperfine.

  • 47 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
toolsshellbashgitperformance

Works with

  • cli

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add akillness/jeo-skills --skill hyperfine-benchmarking --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hyperfine Benchmarking?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hyperfine Benchmarking
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/akillness-hyperfine-benchmarking/badge)](https://www.skillsdirectory.com/skills/akillness-hyperfine-benchmarking)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hyperfine-benchmarking
description: Use this skill to benchmark shell commands reliably with warmup runs, statistical summaries, and exportable artifacts using hyperfine.
allowed-tools: Bash Read Write
---

# hyperfine-benchmarking

Benchmark CLI commands with reproducible methodology instead of one-off `time` output.

## When to use this skill
- Compare two or more command variants (`tool-a` vs `tool-b`)
- Validate performance impact before/after script changes
- Attach benchmark evidence to PRs

## Instructions
1. Confirm tool availability.
2. Keep input/workdir/environment stable across compared commands.
3. Run warmups and enough runs for stable variance.
4. Export JSON/markdown outputs for review.
5. Summarize relative speedup + risk notes.

## Examples

### Availability check
```bash
hyperfine --version
```

### Two-command comparison
```bash
hyperfine \
  --warmup 3 \
  --min-runs 10 \
  'cmd_a --with flags' \
  'cmd_b --with flags'
```

### Parameter sweep
```bash
hyperfine \
  --warmup 3 \
  --parameter-list mode fast,balanced,thorough \
  'mytool --mode {mode} input.txt'
```

### Export artifacts
```bash
hyperfine \
  --warmup 3 \
  --min-runs 10 \
  --export-json benchmark.json \
  --export-markdown benchmark.md \
  'cmd_a' 'cmd_b'
```

## Best practices
- Prefer relative speedup and confidence ranges over single-run claims.
- Do not compare commands with different semantics unless outputs are normalized.
- If variance is high, increase runs or reduce background noise before concluding.
- Record dataset/path and exact command strings in PR text.

## References
- hyperfine project: https://github.com/sharkdp/hyperfine
- Docs: https://github.com/sharkdp/hyperfine#readme

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.