Skip to content
Back to skills

Bench Compare

ASecurity

Run before/after benchmarks comparing current branch against master

  • 10 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
businessgogitperformance

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add dathere/qsv-stats --skill bench-compare --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bench Compare?

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

Security grade badge for Bench Compare
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dathere-bench-compare/badge)](https://www.skillsdirectory.com/skills/dathere-bench-compare)

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: bench-compare
description: Run before/after benchmarks comparing current branch against master
disable-model-invocation: true
---

# Benchmark Comparison

Compare performance of the current branch against master using hyperfine.

## Workflow

1. Note the current branch name and ensure working tree is clean (stash if needed)
2. Build the library in release mode on the current branch: `cargo build --release`
3. Run the user-specified benchmark or test command with hyperfine, e.g.:
   ```
   hyperfine --warmup 3 --min-runs 10 'cargo test --release <test_name>'
   ```
4. Record the result (mean, stddev, min, max)
5. Switch to master: `git checkout master`
6. Build release: `cargo build --release`
7. Run the same benchmark with hyperfine
8. Record the result
9. Switch back to the original branch (and pop stash if used)
10. Report a comparison table:

| Branch | Mean | Stddev | Min | Max |
|--------|------|--------|-----|-----|
| master | ... | ... | ... | ... |
| current | ... | ... | ... | ... |
| **Change** | **+/- %** | | | |

## Arguments

The user should provide:
- The benchmark command or test name to run
- Optionally: number of warmup runs and min runs (defaults: 3 warmup, 10 runs)

## Notes

- Always build with `--release` for meaningful benchmarks
- If the user doesn't specify a command, ask what to benchmark
- Use `hyperfine --export-markdown` if the user wants a shareable report

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.

View all in business →

Comments

Loading comments…

Newsletter

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